determine if actor has rotate

freneticzfreneticz SwedenMember, PRO Posts: 779

What is the best way to do this.......i want to count backflips and frontflips of an actor

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited March 2015

    One idea is to check for self.Rotation%360=0 since every 360 degrees is a full rotation. Unfortunately, unless your actor is rotating REALLY slowly, it won't necessarily hit 0. I've attached a demo that uses a range of mod() values to attempt to correctly count at higher speeds.

    Demo here.

  • freneticzfreneticz SwedenMember, PRO Posts: 779

    thx, going to check it out

Sign In or Register to comment.