Rotation
djdee
Member Posts: 180
hi,
I have my main actor rotating in the direction it is travelling for that i am constraining
self.rotation to vectorToAngle( self.Motion.Linear Velocity.X , self.Motion.Linear Velocity.Y )
it works. The problem is when the screen is touched i want my actor to rotate 20 degrees more or less towards 0 degree.
For example.
if the actor self rotation is 80 degrees i want it to rotate to 60 degrees and if it is 300 degrees it should rotate to 320 degrees.
I tried this by many ways but non of them work.
Any help would b appreciated.
thank you
I have my main actor rotating in the direction it is travelling for that i am constraining
self.rotation to vectorToAngle( self.Motion.Linear Velocity.X , self.Motion.Linear Velocity.Y )
it works. The problem is when the screen is touched i want my actor to rotate 20 degrees more or less towards 0 degree.
For example.
if the actor self rotation is 80 degrees i want it to rotate to 60 degrees and if it is 300 degrees it should rotate to 320 degrees.
I tried this by many ways but non of them work.
Any help would b appreciated.
thank you