示例#1
0
 public DynamicBoxBody(
     EntityIdentifier identifier,
     MetreVector position,
     MetreSize size,
     Density density)
 {
     Identifier = identifier;
     body       = PhysicsWorld.SharedPhysicsWorld.CreateDynamicBody(Identifier, position);
     body.AttachBoxFixture(size, density);
 }
 public static void AttachBoxFixture(this b2Body body, MetreSize size, Density density)
 {
     body.AttachBoxFixture(MetreVector.Zero, size.ToVector(), density);
 }