Basically, the project is an RTS. The units are all spaceships, so I thought controlling them would be really easy. However, I can't find a command that works for turning them.
Here's the code I'm working with right now. The moving forward and backwards works fine, but when I try to turn the ships all they do is spin around, still travelling in the same direction. Is there a command that can actually change the direction the object moves in, or do I have to calculate out the force to send the ship in the proper direction?
Gravity is set to 0, by the way
for d=1 to 25
if phy get rigid body exist(d)=1 and objectselected(d,1)=1
ObjectXForce#=0
ObjectZForce#=10-ObjectXForce#
if keystate(17)=1 then phy add rigid body force at local d,ObjectXForce#,0,ObjectZForce#,0,0,0,1
if keystate(31)=1 then phy add rigid body force at local d,-ObjectXForce#,0,-ObjectZForce#,0,0,0,1
if keystate(30)=1 then yrotate object d,object angle y(d)+2
if keystate(32)=1 then yrotate object d,object angle y(d)+2
endif
next d

[i]"Grow food in dirt? Save time — eat dirt."[i]