Universe.Physics.BulletSPlugin.BSAPIXNA.SetMassProps C# (CSharp) Method

SetMassProps() public method

public SetMassProps ( BulletBody pBody, float pphysMass, Vector3 plocalInertia ) : void
pBody BulletBody
pphysMass float
plocalInertia Vector3
return void
        public override void SetMassProps(BulletBody pBody, float pphysMass, Vector3 plocalInertia)
        {
            RigidBody body = (pBody as BulletBodyXNA).rigidBody;
            if (body != null) // Can't set mass props on collision object.
            {
                IndexedVector3 inertia = new IndexedVector3(plocalInertia.X, plocalInertia.Y, plocalInertia.Z);
                body.SetMassProps(pphysMass, inertia);
            }
        }
BSAPIXNA