Ollie/Jumping a vehicle!
by Matthew Harris · in Torque Game Engine · 12/07/2003 (4:09 pm) · 6 replies
Hey Guys,
I am having some trouble trying to figure this out. All I want is for the user to hit the space key, and have the vehicle ollie/jump in the air a few feet and come back down. I have tried using the applyImpulse() function from the rigid class, but that made the vehicle do barrel rolls. Other hacks I tried were bouncy bouncy. I have also tried to transcribe the player jump code and add it to the wheeled vehicle class to jump... but with no success, mostly because the logic doesn't translate well.
Someone please help me out here, I need a working solution.
Thanks in advance.
I am having some trouble trying to figure this out. All I want is for the user to hit the space key, and have the vehicle ollie/jump in the air a few feet and come back down. I have tried using the applyImpulse() function from the rigid class, but that made the vehicle do barrel rolls. Other hacks I tried were bouncy bouncy. I have also tried to transcribe the player jump code and add it to the wheeled vehicle class to jump... but with no success, mostly because the logic doesn't translate well.
Someone please help me out here, I need a working solution.
Thanks in advance.
#2
12/07/2003 (6:57 pm)
Ummm no offsense, but that has nothing to do with anything I am talking about. I am not talking about controling the player in mid air, I am talking about making a VEHICLE jump off the ground!. Next time please don't post irrelvant stuff that does nothing even close to want I want... thanks.
#3
Have you applied a linear force upwards to the vehicle, directly, not through applyImpulse?
12/07/2003 (10:07 pm)
Sheesh, calm down, man :)Have you applied a linear force upwards to the vehicle, directly, not through applyImpulse?
#4
12/07/2003 (11:06 pm)
Hehe, I was just playing :P Anyways yes I have. It works, but crazy results kinda happen, as in when the vehicle comes back down and hits the terrain it flys back up into the air !
#5
12/08/2003 (8:49 am)
Maybe you need to make the shocks softer?
#6
12/08/2003 (1:42 pm)
Its hard to really do that with our setup because the length of the spring is 0.1 so there really is no room for shocks..
Torque Owner Edward Smith
Silencersoft
EDIT: Its called "Air Control" in the resources