object: Convert sphere radius to Source units
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Jeremy Lorelli 2022-12-30 22:46:51 -08:00 committed by Joshie
parent 067cc7eb4e
commit 6c3e224561
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ float JoltPhysicsObject::GetSphereRadius() const
return 0.0f;
const JPH::SphereShape *pSphereShape = static_cast< const JPH::SphereShape * >( m_pBody->GetShape() );
return pSphereShape->GetRadius();
return JoltToSource::Distance( pSphereShape->GetRadius() );
}
void JoltPhysicsObject::SetSphereRadius( float radius )