public MovingGameObject(Game1 game)
     : base(game)
 {
     velocity = new InterpolatedVector2GameObjectMember(this, new Vector2(0));
     angularSpeed = new FloatGameObjectMember(this, 0);
     targetAngle = new FloatGameObjectMember(this, 0);
 }
Ejemplo n.º 2
0
 public MovingGameObject(Game1 game)
     : base(game)
 {
     velocity     = new InterpolatedVector2GameObjectMember(this, new Vector2(0));
     angularSpeed = new FloatGameObjectMember(this, 0);
     targetAngle  = new FloatGameObjectMember(this, 0);
 }
 public MemberPhysicalObject(Game1 game)
     : base(game)
 {
     positionRelativeToParent  = new InterpolatedVector2GameObjectMember(this, new Vector2(0));
     directionRelativeToParent = new InterpolatedAngleGameObjectMember(this, 0);
     parent = new GameObjectReferenceField <PhysicalObject>(this);
 }
 public MemberPhysicalObject(Game1 game)
     : base(game)
 {
     positionRelativeToParent = new InterpolatedVector2GameObjectMember(this, new Vector2(0));
     directionRelativeToParent = new InterpolatedAngleGameObjectMember(this, 0);
     parent = new GameObjectReferenceField<PhysicalObject>(this);
 }
 public CompositePhysicalObject(Game1 game)
     : base(game)
 {
     position  = new InterpolatedVector2GameObjectMember(this, new Vector2(0));
     direction = new InterpolatedAngleGameObjectMember(this, 0);
 }
 public CompositePhysicalObject(Game1 game)
     : base(game)
 {
     position = new InterpolatedVector2GameObjectMember(this, new Vector2(0));
     direction = new InterpolatedAngleGameObjectMember(this, 0);
 }