Jumping Vehicles?
by Neil Marshall · in Torque Game Engine · 07/02/2003 (3:28 pm) · 4 replies
I'm just wondering (before I try to copy and paste from the player into the vehicle) has anyone managed to get wheeledVehicles to jump?
#2
Sounds like fun :-)
In that case you're already on the right track with the code, but I guess you may (or may not) have complications with the 'jump vector' of a vehicle. If I understand correctly, the player stands totally vertical when climbing slopes, but obviously the wheeled vehicle tilts around it's X axis due to it's wheelbase and wheels. So, this affects where it's Z axis points - if the car jumped 'up' on a slope, would it jump away from the actual slope and try and head backwards?
Apologies if I'm talking rubbish here ;-)
-Darren
07/02/2003 (4:01 pm)
Or, do you mean to press the space bar and make the vehicle do a vertical jump?Sounds like fun :-)
In that case you're already on the right track with the code, but I guess you may (or may not) have complications with the 'jump vector' of a vehicle. If I understand correctly, the player stands totally vertical when climbing slopes, but obviously the wheeled vehicle tilts around it's X axis due to it's wheelbase and wheels. So, this affects where it's Z axis points - if the car jumped 'up' on a slope, would it jump away from the actual slope and try and head backwards?
Apologies if I'm talking rubbish here ;-)
-Darren
#3
I'm not really sure what the best way to go is. Anyone have any suggestions?
07/02/2003 (4:15 pm)
I'm trying to do a tony hawkish sort of thing but with bikes. I guess that would be Dave Mirra then :) Where you can go off of jumps and do tricks. If you're on flat ground, you'll do a bunny hop or wheely. I not only want to be able to go off of jumps (Which I believe is simply a matter of hitting a wedge at high speed) but I also want to have the ability to hit things like tree roots and jump (I think that might involve a trigger and processing the jump differently if they are inside of it).I'm not really sure what the best way to go is. Anyone have any suggestions?
#4
From what you're saying, and from what I'm guessing, you will need to include some forward motion in the jump, possible all the time. When on a slope, you could also project more forward movement into the jump, allowing the player to travel greater distances and pull off those tricks :-)
You'll probably find yourself projecting the player quite high, even from a standing bunny hop-style move - the player in Tony Hawk's manages to get some awesome air, even in a simple ollie. I suppose that helps sometimes, but I draw the line at bunny hopping onto telephone lines :-)
I can't really offer any technical advice, other than checking through the player code for the jump-specific stuff, and implementing that straight into wheeledVehicle. See what you get :-)
-Darren
07/02/2003 (4:46 pm)
I'm afraid I haven't done anything in-depth with either object yet.From what you're saying, and from what I'm guessing, you will need to include some forward motion in the jump, possible all the time. When on a slope, you could also project more forward movement into the jump, allowing the player to travel greater distances and pull off those tricks :-)
You'll probably find yourself projecting the player quite high, even from a standing bunny hop-style move - the player in Tony Hawk's manages to get some awesome air, even in a simple ollie. I suppose that helps sometimes, but I draw the line at bunny hopping onto telephone lines :-)
I can't really offer any technical advice, other than checking through the player code for the jump-specific stuff, and implementing that straight into wheeledVehicle. See what you get :-)
-Darren
Torque Owner Anthony McCrary