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