Problem with rotating around another actor [VIDEO INCLUDED]
Hey, im having this problem with rotating my actor around another actor (if you saw my thread, you are already aware that im trying to get sort of a swinging motion) :

I have it so if i press "right" it should rotate counter clockwise, and left rotates clockwise, however, imagine the center of the brick is the origin of a graph, when rotating left it slows down in the 2nd and 4th quandrants, and going right slows down in the 1st and 3rd. I turned gravity off and all that other stuff, I cant figure out whats wrong. Any help?

I have it so if i press "right" it should rotate counter clockwise, and left rotates clockwise, however, imagine the center of the brick is the origin of a graph, when rotating left it slows down in the 2nd and 4th quandrants, and going right slows down in the 1st and 3rd. I turned gravity off and all that other stuff, I cant figure out whats wrong. Any help?
Comments
Just a thought.
The more detail you give the more help we can give you.
(keep in circle):
Constrain self.position.Y to "game.Post Y + self.radius *sin(vectorToAngle( self.Position.X - game.Post X , self.Position.Y - game.Post Y ))"
Constrain self.position.X to "game.Post X + self.radius *cos(vectorToAngle( self.Position.X - game.Post X , self.Position.Y - game.Post Y ))"
(to keep the actor pointed towards the brick):
Constrain self.Rotation to self.angle-90
(movement)
if key left is pressed:
accelerate to 180° relative to actor
if key right is pressed:
accelerate to 0° relative to actor
i've noticed that putting the left and right movement at 135 and 45, respectively, makes the movement a little bit smoother. (those are the values used in the video)
...or just delete this thread and allow me to repost.
or i misread what u want
quadrants of a coordinate plane:
http://www.math.com/school/subject2/images/S2U4L1DP.gif i have to use acceleration because i want to apply gravity to it later in order to create a swinging motion that can gain momentum.
Do you need it to swing like a pendulum (and lose momentum).
Or did you really mean that you want it to gain momentum (even on the upswing).
Does it need to swing all the way around in both directions. (So that it goes past 360 and needs to take going past 360 and back to 0 into account.)
All these questions (and more) will impact how you want to solve this.