object: Convert sphere radius to Source units
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
067cc7eb4e
commit
6c3e224561
|
@ -396,7 +396,7 @@ float JoltPhysicsObject::GetSphereRadius() const
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
|
|
||||||
const JPH::SphereShape *pSphereShape = static_cast< const JPH::SphereShape * >( m_pBody->GetShape() );
|
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 )
|
void JoltPhysicsObject::SetSphereRadius( float radius )
|
||||||
|
|
Loading…
Reference in New Issue