|
Post by PiratSS on Aug 15, 2004 7:19:21 GMT 1
Hey walaber, great wrapper!
I been having so much fun destroying my buildings with this engine. My question is. How do I shoot a sphere in a particular Angle, and speed.
I need angle in Degrees.
I tried few things, but they didnt work out the way i planned it.
Thank you for your help,
PiratSS.
|
|
pwhuk
New Member
Posts: 8
|
Post by pwhuk on Aug 15, 2004 13:51:38 GMT 1
create the sphere and set all the newton proprties to it as usual, and position it where the sphere will launch from, then add these two lines to launch the sphere:
NDB_SetVector ((power#*cos(ang1#))*sin(ang2#)),(power#*sin(ang1#)),((power#*cos(ang1#))*cos(ang2#)) NDB_NewtonBodySetVelocity Sphere
Where: power# is the velocity you want to launch it at ang1# is the trajectory angle to lauch at from the horizontal ang2# is the direction angle to launch at
angles are in degrees in this code
hopefully that should work
|
|
|
Post by PiratSS on Aug 15, 2004 17:49:55 GMT 1
thx, i'll try it when i get home. That was exactly what I was looking for ;D
|
|
|
Post by omnxae on Aug 22, 2008 6:57:58 GMT 1
|
|