Physics/Geom: Fix NullGeom InertialMatrix
Former-commit-id: ac5e0c6cd9f775c29e37a4bb5a072eee2b224d0f
This commit is contained in:
@@ -379,6 +379,15 @@ nzGeomType NzNullGeom::GetType() const
|
||||
return nzGeomType_Null;
|
||||
}
|
||||
|
||||
void NzNullGeom::ComputeInertialMatrix(NzVector3f* inertia, NzVector3f* center) const
|
||||
{
|
||||
if (inertia)
|
||||
inertia->MakeUnit();
|
||||
|
||||
if (center)
|
||||
center->MakeZero();
|
||||
}
|
||||
|
||||
NewtonCollision* NzNullGeom::CreateHandle(NzPhysWorld* world) const
|
||||
{
|
||||
return NewtonCreateNull(world->GetHandle());
|
||||
|
||||
Reference in New Issue
Block a user