Measure distance an actor is falling?

MrRudeMrRude Member, PRO Posts: 8
I have actors dropping from platforms to other platforms. I want to make it where if the fall is a short distance the actor is ok and land on platform, but if it is a longer distance the actor is destroyed. I know how to land and destroy, just not quite sure how to do the distance thing.

How do I accomplish?
Thanks

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2013
    When the actor begins its fall - record it's position into an attribute (presumably it's just falling in the Y direction) - then when it hits the platform subtract the recorded position from the current position - and if the result is above a threshold determined by you then punish it accordingly.
  • MrRudeMrRude Member, PRO Posts: 8
    Perfect.
    Thanks!!!
Sign In or Register to comment.