How does the ray-cast vehicle wrapper work? Is it possible to create a vehicle with one wheel, and if so, how? Thanks!
in theory its possible. you would just need some way of keeping it up right. maybe alignAxisToVect((0,0,1), 2, 0.5).
You can have as much wheels as you like. I created a six wheel drive in the past.
Be aware the vehicle wrapper has some problems with loopings as it assumes the ground is always below the wheels axis (global -Z).
Update: What I was trying to do was build 4 one-wheel vehicles… to join them together as a car (needed due to offset steering geometry [car has no fenders, and as such wheel mount point visible]) how would i go about building a ray-cast car from ground up? Can steering angles be arbitrary?
- You can do it with rigid body joints (rigid body joints are unstable at high speeds). You can find examples on YouTube.
- You can do 4 vehicle wrappers, one for each wheel. Not tested but should work.
- You can use 1 vehicle wrapper and turn on and off the tire steering (point 8 Line 169-180). Not tested but should work. Code changes needed.
http://www.tutorialsforblender3d.com/Game_Engine/Vehicle/Vehicle_2.html - You can use Raiderium’s “Advanced vehicle physics” script. (some code changes needed)
https://blenderartists.org/forum/showthread.php?234486-Advanced-vehicle-physics&highlight=vehicle