Rotation Problem, Negative Y position of the center of the circle
Greg3d
Member Posts: 3
Hey guys,
I'm having a problem with the making an actor move in a perfect circle,. i followed the math in the link: http://gamesalad.com/wiki/how_tos:gsc_circular_movement
It works, I kind of understand what's going on, but when I try to make the origin point of the y axis a negative, it rotates once (sometimes) then dies. I assume it's the negative number in the maths that doing it.
My self position Y is constrained to 512*sin( self.Time *600%360)-352.
The hope is that the actor rotates in thru the center of the screen. The whole purpose of this is because my ground plane is not flat and the objects should follow the arc of the ground.
I'm having a problem with the making an actor move in a perfect circle,. i followed the math in the link: http://gamesalad.com/wiki/how_tos:gsc_circular_movement
It works, I kind of understand what's going on, but when I try to make the origin point of the y axis a negative, it rotates once (sometimes) then dies. I assume it's the negative number in the maths that doing it.
My self position Y is constrained to 512*sin( self.Time *600%360)-352.
The hope is that the actor rotates in thru the center of the screen. The whole purpose of this is because my ground plane is not flat and the objects should follow the arc of the ground.
Comments