Inside3D!
     

Jump to targetted point

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
gastrop0d



Joined: 11 Feb 2010
Posts: 5

PostPosted: Mon Feb 15, 2010 5:48 am    Post subject: Jump to targetted point Reply with quote

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? Shocked
Back to top
View user's profile Send private message
frag.machine



Joined: 25 Nov 2006
Posts: 728

PostPosted: Mon Feb 15, 2010 4:17 pm    Post subject: Reply with quote

Check the code for ogre firing grenades. It can give you some clue about how to do this jump.
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group