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

CalculateLocalInertia() public method

public CalculateLocalInertia ( BulletShape pShape, float pphysMass ) : System.Vector3
pShape BulletShape
pphysMass float
return System.Vector3
        public override Vector3 CalculateLocalInertia(BulletShape pShape, float pphysMass)
        {
            CollisionShape shape = (pShape as BulletShapeXNA).shape;
            IndexedVector3 inertia = IndexedVector3.Zero;
            shape.CalculateLocalInertia(pphysMass, out inertia);
            return new Vector3(inertia.X, inertia.Y, inertia.Z);
        }
BSAPIXNA