-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PhysicsCharacter.onGround() is unreliable #18
Comments
Interesting that the issue doesn't appear in |
It appears in |
Sure enough: bool btKinematicCharacterController::onGround() const
{
return (fabs(m_verticalVelocity) < SIMD_EPSILON) && (fabs(m_verticalOffset) < SIMD_EPSILON);
} |
Of those 3 fields, |
Okay, the fix is in Libbulletjme v14.5.0. In hindsight, I wish I'd made it |
As written, |
There's an issue with the current solution because it returns |
I saw strange character behaviors while writing tutorials for LBJ. Most of the time
PhysicsCharacter.onGround()
returns the correct value, but occasionally it returns true when the character is unsupported.This allows jumping to unlimited height in tests such as
HelloWalk
,TestPhysicsCharacter
, andTestQ3
.It might be related the character's vertical velocity being nearly zero.
The text was updated successfully, but these errors were encountered: