Vehicles - Bicycle
by Neil Marshall · in Torque Game Engine · 08/17/2002 (6:57 pm) · 0 replies
Okay, I've got this bike (which looks a lot like a buggy :) working, but there are a couple things I need to know.
1) How are the shocks animated? I can't seem to find any information on it.
2) Can the front shocks turn with the wheel?
3) Is there any way I can attach the handle bars to the wheel? or maybe run a left animation when the player tries to turn left. Has anyone created a 4+ wheeled vehicle that has a steering wheel which turns?

For people wondering how I did this. Note the little screenshot in the corner. You'll see 3 puffs of smoke. The bike is actually a Trike. The front wheel is the standard Buggy wheel. The back 2 wheels are a little different though. The left wheels pivot is -0.8m away from where it should be, and it's texture is set to an invisible png. The right wheels pivot is 0.8m away from where it should be and it has a texture. Because of the offsets, the computer thinks that the wheels are farther out than they actually are (That's why you see the puffs of smoke out there)
1) How are the shocks animated? I can't seem to find any information on it.
2) Can the front shocks turn with the wheel?
3) Is there any way I can attach the handle bars to the wheel? or maybe run a left animation when the player tries to turn left. Has anyone created a 4+ wheeled vehicle that has a steering wheel which turns?

For people wondering how I did this. Note the little screenshot in the corner. You'll see 3 puffs of smoke. The bike is actually a Trike. The front wheel is the standard Buggy wheel. The back 2 wheels are a little different though. The left wheels pivot is -0.8m away from where it should be, and it's texture is set to an invisible png. The right wheels pivot is 0.8m away from where it should be and it has a texture. Because of the offsets, the computer thinks that the wheels are farther out than they actually are (That's why you see the puffs of smoke out there)