What is the best way to do this.......i want to count backflips and frontflips of an actor
Comments
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 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.
Comments
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.
thx, going to check it out