Jump to targetted point
Moderator: InsideQC Admins
2 posts
• Page 1 of 1
Jump to targetted point
Okay, this is really melting my brain...
I've got a player position and a target location. I want to have it so you can trigger a jump from the player to the target that has a maximum speed S, and a minimum angle O.
Target location is a simple raytrace of where ever the player is aiming.
If the target is too far away, the result jump will just be a jump at speed S and angle 45 (ie the maximum possible jump distance).
The jump must always at least be at angle O.
I basically failed projectile-motion in physics class... any idea how to implement something like this?
I've got a player position and a target location. I want to have it so you can trigger a jump from the player to the target that has a maximum speed S, and a minimum angle O.
Target location is a simple raytrace of where ever the player is aiming.
If the target is too far away, the result jump will just be a jump at speed S and angle 45 (ie the maximum possible jump distance).
The jump must always at least be at angle O.
I basically failed projectile-motion in physics class... any idea how to implement something like this?
- gastrop0d
- Posts: 5
- Joined: Thu Feb 11, 2010 9:13 am
Check the code for ogre firing grenades. It can give you some clue about how to do this jump.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest