Show / Hide Table of Contents

Class ModAPIMass

ModAPI struct, that is available for modders. Copy of Havok.HkMassProperties. Created with IMyPhysics.CreateMassCombined, IMyPhysics.CreateMassForBox, IMyPhysics.CreateMassForCapsule, IMyPhysics.CreateMassForCylinder, IMyPhysics.CreateMassForSphere.

Inheritance
System.Object
ModAPIMass
Namespace: VRage.ModAPI
Assembly: VRage.Game.dll
Syntax
public sealed class ModAPIMass : ValueType

Constructors

ModAPIMass(Single, Single, Vector3, Matrix)

Declaration
public ModAPIMass(float volume, float mass, Vector3 centerOfMass, Matrix inertiaTensor)
Parameters
Type Name Description
System.Single volume
System.Single mass
Vector3 centerOfMass
Matrix inertiaTensor

Fields

CenterOfMass

Center of mass for physical shape (CoM)

Declaration
public Vector3 CenterOfMass
Field Value
Type Description
Vector3

InertiaTensor

Intertia tensor for physical shape

Declaration
public Matrix InertiaTensor
Field Value
Type Description
Matrix

Mass

Mass of physical shape

Declaration
public float Mass
Field Value
Type Description
System.Single

Volume

Volume of physical shape

Declaration
public float Volume
Field Value
Type Description
System.Single

Methods

FromHkMass(HkMassProperties)

Declaration
public static ModAPIMass FromHkMass(HkMassProperties mass)
Parameters
Type Name Description
Havok.HkMassProperties mass
Returns
Type Description
ModAPIMass
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾