prime31 / CharacterController2D

1.08k stars 248 forks source link

get speed #87

Closed akshinmustafayev closed 6 years ago

akshinmustafayev commented 6 years ago

How get movement speed? i want to make some animation for that when player is jumping, falling down after jumping and so on

prime31 commented 6 years ago

speed is calculated the same was as with any object that moves: distance / time