MstWntd
- 7
- 0
Homework Statement
Hi All,
I have this code for my Games Project to calculate the Projectile maths for an arrow
[C++]
mPosition.y = ((pmVolYint * pmTime) + (pmAcc * (pmTime * pmTime) ) / 2) + 18 * sin(pmFAngle*(PI/180));
mPosition.x = ((pmVolYint * pmTime) +
((0.065* pmWind * pmArea) * (pmTime * pmTime) ) / 2) + 18 * cos(pmFAngle*(PI/180));
mVelocity.z = 0.065 * pmWind * pmArea * pmTime + pmVol;
pmTime += pmTimeInc;
[/C++]
What I would lik to do is calculate the new Y (Up/Down) roation produced over time pmTime.
Homework Equations
I don't have any

The Attempt at a Solution
mRotation.y = 18 * sin(pmFAngle*(PI/180));
and
mRotation.z = (pmAcc * (pmTime * pmTime) ) / 2) + 18 * sin(pmFAngle*(PI/180));
Please do help and any help is greatly appriecated.
Thanks.