Example #1
0
        public BoneEntity(InverseKinematicGame Game)
        {
            this.Game     = Game;
            this.Texture  = this.Game.Content.Load <Texture2D>("arm");
            this.Scale    = 0.20f;
            this.Midpoint = new Vector2(this.Texture.Height / 2.0f,
                                        this.Texture.Height / 2.0f);
            //this.Midpoint = Vector2.Multiply(this.Midpoint, this.Scale);

            this.EffectorEntity = new EffectorEntity(Game, this);
            this.Length         = this.Texture.Width - this.Midpoint.X;
            this.Length        *= this.Scale;
        }
 public EffectorEntity(InverseKinematicGame Game, BoneEntity BoneEntity)
 {
     this.Game       = Game;
     this.Texture    = this.Game.Content.Load <Texture2D>("effector");
     this.BoneEntity = BoneEntity;
 }
Example #3
0
 static void Main()
 {
     using (var game = new InverseKinematicGame())
         game.Run();
 }