Ninja Character - Dynamic gravity for characters & objects

You can try to do something similar to this, or you could be creative and think about a solution that involves performing traces against potential new floors (with blueprint).