Exemplo n.º 1
0
 /// <summary>
 /// Create the actual collision body.
 /// </summary>
 /// <param name="shape">Collision shape.</param>
 private void CreateBody(Core.Physics.CollisionShapes.ICollisionShape shape)
 {
     _shape = shape;
     _body  = new Core.Physics.StaticBody(shape);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create the actual collision body.
 /// </summary>
 /// <param name="shape">Collision shape.</param>
 private void CreateBody(Core.Physics.CollisionShapes.ICollisionShape shape)
 {
     _shape             = shape;
     _body              = new Core.Physics.StaticBody(shape);
     _body.EcsComponent = this;
 }