tank rotation on a surface
- big_daddy2
- Private First Class
- Posts: 131
- Joined: Sat May 06, 2006 1:06 am
- Location: the middle of nowhere, USA
tank rotation on a surface
hi all i am trying to use the physics object to make myself spin around on a arc object, the problem is i do not know how to do this. I tried using the angular object in the physic object but i cannot get it to work, i just get flung way across the map. the arc is at position 0 735 30 if it matter, thx
- Spazzy McGee
- Sergeant Major
- Posts: 1403
- Joined: Mon Mar 21, 2005 4:59 pm
- Location: Planet MoFo, Sheffield Division; United Kingdom
- Contact:
Re: tank rotation on a surface
You need the centre of rotation to be the centre of your arc. The centre of rotation is the point which you move around.
Angular physics has three parameters:
Where <speed> is the speed of rotation, in degrees per second; <x> is the x coordinate of the centre of rotation; and <y> is the y coordinate.
You can forget about the z coordinate, because angular physics only works in the x y plane.
I think you want something like this, where the centre coordinates, are the same as your arc's coordinates (I set the speed to 5):
Angular physics has three parameters:
Code: Select all
physics
name whatever
angular <speed> <x> <y>
end
You can forget about the z coordinate, because angular physics only works in the x y plane.
I think you want something like this, where the centre coordinates, are the same as your arc's coordinates (I set the speed to 5):
Code: Select all
physics
name spinny
angular 5 0 735
end
"Life is what happens to you while you're busy making other plans." - John Lennon