コード例 #1
0
        public virtual void FinalizeBody()
        {
            try
            {
                Vector3 com = SetMass(1.0f);

                Body.MoveTo(Position, Matrix.Identity);
                Skin.ApplyLocalTransform(new JigLibX.Math.Transform(-com, Matrix.Identity));
                Body.EnableBody(); // adds to CurrentPhysicsSystem
            }
            catch (Exception E)
            {
            }
        }
コード例 #2
0
        public virtual void FinalizeBody()
        {
            try
            {
                Vector3 com = SetMass(1.0f);

                Body.MoveTo(Position, Orientation);
                Skin.ApplyLocalTransform(new JigLibX.Math.Transform(-com, Matrix.Identity));
                Body.EnableBody(); // adds to CurrentPhysicsSystem
            }
            catch (Exception E)
            {
                System.Diagnostics.Debug.WriteLine(E.StackTrace);
            }
        }