JoltPhysics3D/JoltCharacter: Fix IsOnGround returning true when touching walls
This commit is contained in:
parent
1bbfd9fdd2
commit
09f282f2fe
|
|
@ -83,7 +83,7 @@ namespace Nz
|
|||
|
||||
bool JoltCharacter::IsOnGround() const
|
||||
{
|
||||
return m_character->IsSupported();
|
||||
return m_character->GetGroundState() == JPH::Character::EGroundState::OnGround;
|
||||
}
|
||||
|
||||
void JoltCharacter::SetFriction(float friction)
|
||||
|
|
|
|||
Loading…
Reference in New Issue