Use the PhysicActor's set/getOnGround method
Add a method to check if an object is on the ground
Clarify a comment
Better implement Npc::getSpeed
Scale the animation speed based on the animation velocity and movement speed

This may not be totoally correct since it takes the whole animation into
account, rather than just the looping portion. But it's good enough for now.