Beispiel #1
0
 public virtual void ComputeMass(b2MassData massData, float density)
 {
     Box2dPINVOKE.b2Shape_ComputeMass(swigCPtr, b2MassData.getCPtr(massData), density);
 }
Beispiel #2
0
 /// @see b2Shape::ComputeMass
 public override void ComputeMass(ref b2MassData massData, float density)
 {
     massData.mass   = 0.0f;
     massData.center = 0.5f * (m_vertex1 + m_vertex2);
     massData.I      = 0.0f;
 }