[SOLVED]Determining if character is off the ground
Posted: Mon Feb 13, 2012 8:24 pm
What is the most efficient way to determine if my character is on the ground or is in the air?
When my character is in the air I want to turn off sprinting. Here he is still sprinting during a jump. http://youtu.be/cHKFOEqnYgQ
I looked in CharacterController for what happens when he tries to jump. Should I check SupportFinder.HasTraction and SupportFinder.HasSupport? Is this best way considering I need to check each update? Or is there a simpler way? Or is this very efficient anyway?
Thanks again.
When my character is in the air I want to turn off sprinting. Here he is still sprinting during a jump. http://youtu.be/cHKFOEqnYgQ
I looked in CharacterController for what happens when he tries to jump. Should I check SupportFinder.HasTraction and SupportFinder.HasSupport? Is this best way considering I need to check each update? Or is there a simpler way? Or is this very efficient anyway?
Thanks again.