Universe.Physics.BulletSPlugin.BSCharacter.UpdatePhysicalMassProperties C# (CSharp) Method

UpdatePhysicalMassProperties() public method

public UpdatePhysicalMassProperties ( float physMass, bool inWorld ) : void
physMass float
inWorld bool
return void
        public override void UpdatePhysicalMassProperties(float physMass, bool inWorld)
        {
			//OMV.Vector3 localInertia = PhysicsScene.PE.CalculateLocalInertia(PhysShape.physShapeInfo, physMass);  // new
            OMV.Vector3 localInertia = PhysicsScene.PE.CalculateLocalInertia(PhysShape.physShapeInfo, physMass);
            PhysicsScene.PE.SetMassProps(PhysBody, physMass, localInertia);
        }