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) { } }
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); } }