sukoy 122 Report post Posted April 4, 2006 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 0 Share this post Link to post Share on other sites
etothex 728 Report post Posted April 4, 2006 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. 0 Share this post Link to post Share on other sites
sukoy 122 Report post Posted April 6, 2006 Quote:Original post by etothexIn 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 0 Share this post Link to post Share on other sites