projectile motion
st1031130082
Member Posts: 2
Hi , I am making basketball game and I want to use the projectile when the player throw the ball .
thanks
Comments
Hi , Iam making basketball and i want to use the projectile motion when the player throw the ball .
thanks
what have you tried so far? There are hundreds of ways to do this, is something not working?
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
I think you are asking for an arc movement for an actor? You can search gamesalad actor moves in arc and see old threads...
@st1031130178 Just have the player spawn the basketball in the direction you want and have the basket ball accelerate downwards.
You might want to try the 'Realtime Projectile Trajectory' demo here:
http://orbz.com/gamesalad-demos/
I'm trying something similar right now, but am looking to reduce the length of the arc (so it doesn't show the whole way). Unsuccessful so far, but let me know if anyone has any ideas for that. I can change the number of plot points, but seemingly not the length of the arc!
for Barleyesq.
Here is some code for throwing a ball. The constrains are to self.motion.linear.velocity X & Y. I used gravity in this game but you can use simulated gravity by adding an accelerate behavior down. This method keeps collisions intact.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS