コード例 #1
0
 public PhysicsGameObject(Game game, Texture2D texture, Vector2 position, float gravity)
     : base(game, texture)
 {
     fixedPos = false;
     body = new PhysicsBody(position, new Point(texture.Height, texture.Width), gravity);
 }
コード例 #2
0
 public PhysicsGameObject(Game game, Texture2D texture, Vector2 position, bool fixedPos)
     : base(game, texture)
 {
     this.fixedPos = fixedPos;
     body = new PhysicsBody(position, new Point(texture.Height, texture.Width));
 }