How to offset a direction by 180
JamesBoucher
Member Posts: 433
I'm trying to move an actor using accelerate. I store the direction in an attribute that is set with a constraint attribute that is set to self.Rotation. The self.Rotation is off by 180 degrees. How can I use the attribute (game.Direction) and offset it by 180 degrees.
Comments
That should work.
I may be misunderstanding.
-Gamexcb
(#+180)%360
But subtracting 180 in your example would make it -70 which is still counts as 290. (360-70)
Sorry!
-Gamexcb