Limit Rotation of direction (question)
gamedivision
Member Posts: 807
how would i limit the rotation of an actor travelling in the direction of travel,as the actor is travelling upwards i want to limit his rotation to an arc,so if he does fall down then that limited rotation will keep him upward facing.
thank you
thank you
Comments
If self.rotation is < then 45
rotate clockwise
If self.rotation is > then 315
rotate counterclockwise
Meaning - it wont rotation if is below/above the degree value you set.
or you could simply do a constrain MIN/MAX or self rotation