Jump to content
  • Advertisement
Sign in to follow this  
sukoy

Equations motion in the space

This topic is 4553 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone and sorry for my english. I'm finding the equations motion in the space. my problem is: one cube with (hight_cube lenght_cube width_cube) start position of ball(x0,y0,z0) direction vector of ball(vx,vy,vz) start velcity of ball. I have assumed that the body is a material point and i have resolved the problem for 2D (x,y),with the : X=X0+(GLfloat)(V_0*cos(rad(angle))*T); Y=Y0+(GLfloat)((V_0*sin(rad(angle))*T))-(GLfloat)(0.5f*G*T*T); Vx=V_0*cos(rad(angle)); Vy=V_0*sin(rad(angle))-(G*T); where X and Y take me the position of ball and Vx,Vy the component of direction vector. Motion in the space have an equations like this: r(T)=x(T)*ux+y(T)*uy+z(T)*uz where "u" is an payer of axis x,y,z where velocity is derivative of r(T)/dt i don't know what is Z and Vz. Can someone help me? i'm finding a tutorial or guide,on my book of physic i have found nothing,only for the solver of problem in 2D. Thanke you byezz

Share this post


Link to post
Share on other sites
Advertisement
In the simple case of a ball starting at a point (x, y, z), with velocity (vx, vy, vz), the ball will trace an arc in a 2D plane. So all that is necessary to solve the problem is to align the x, y, z axes so that one axis is aligned to the motion of the ball (i.e., the plane is parallel to an axis)

Then one of the terms x, y, z will vanish to 0 in all calculations and you end up with the above solved case in 2D.

Share this post


Link to post
Share on other sites
Quote:
Original post by etothex
In the simple case of a ball starting at a point (x, y, z), with velocity (vx, vy, vz), the ball will trace an arc in a 2D plane. So all that is necessary to solve the problem is to align the x, y, z axes so that one axis is aligned to the motion of the ball (i.e., the plane is parallel to an axis)

Then one of the terms x, y, z will vanish to 0 in all calculations and you end up with the above solved case in 2D.


thanke you,i was thinking at the same solutions,now i'm sure.

byezz

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!