JoltPhysics3D/JoltCharacter: Fix IsOnGround returning true when touching walls

This commit is contained in:
SirLynix 2023-08-09 19:38:07 +02:00
parent 1bbfd9fdd2
commit 09f282f2fe
1 changed files with 1 additions and 1 deletions

View File

@ -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)