Linking two wheels
by Sean Kerr · in Torque Game Engine · 02/24/2004 (6:27 am) · 9 replies
Is it possible to link wheels on a WheeledVehicle? For instance, I'd like to create a vehicle with independent front wheels, but linked back wheels. They need to act as if they're on the same axle, such as one found on a fourwheeler.
About the author
#2
You could also modify the vehicle code to do what you want, given you have the source and all. ;)
02/24/2004 (9:42 pm)
Neat workaround, Martin.You could also modify the vehicle code to do what you want, given you have the source and all. ;)
#3
02/27/2004 (2:33 am)
Hi, I'm trying to link to wheels with by linking axel to the right and face it to the left, it kinda work but its only facing the right side when the right wheel is moving, when the left is jumping up and down the axel is stiff but following the left wheel, any idea how to fix that???
#4
02/27/2004 (6:14 am)
Hi, I'm trying to link to wheels with by linking axel to the right and face it to the left, it kinda work but its only facing the right side when the right wheel is moving, when the left is jumping up and down the axel is stiff but following the left wheel, any idea how to fix that???
#5
02/27/2004 (1:43 pm)
Yes, assign a "look at constraint" motion controller, setting the look at target to the opposite hub.
#6
02/29/2004 (5:06 am)
I did that, and it folows both hubs but not at the same time, when the right is moving its facing both hubs but when its the left it only looks at the left and ignores the right
#7
02/29/2004 (11:31 am)
Then try setting up the animation for a dummy, link the axel to it, making certain the dummy gets exported. Also make sure your sequence dummies are set as blend animations.
#8
03/01/2004 (2:41 am)
Ok, it looks good now in the show tool, but im not sure I did the blending correct becouse in the game its only follows the right wheel now :/... how do I set the dummy as a blend animation exactly?
#9
03/01/2004 (2:53 am)
I had forgot to check blend for one of the spring animations :)... now it works perfect
Torque 3D Owner Martin "Founder" Hoover
Keeping this in mind it's pretty simple to rig up an axle mesh that is linked to one wheel and points at the other. The spring animations will keep the axle in the right place. The only real concern is that the axle will slide away from one of the wheels (depending on how it's designed). For long "spring" lengths it's noticable, but would only be real obvious to a critical viewer.