Helper to calculate the combined mass, centre of mass, and inertia tensor about the origin and the CoM (for the local primitives) primitiveProperties is an array of properties - must be the same number as there are primitives

Namespace: JigLibX.Collision
Assembly: JigLibX (in JigLibX.dll) Version: 0.3.1.0

Syntax

C#
public void GetMassProperties(
	PrimitiveProperties[] primitiveProperties,
	out float mass,
	out Vector3 centerOfMass,
	out Matrix inertiaTensor,
	out Matrix inertiaTensorCoM
)
Visual Basic
Public Sub GetMassProperties ( _
	primitiveProperties As PrimitiveProperties(), _
	<OutAttribute> ByRef mass As Single, _
	<OutAttribute> ByRef centerOfMass As Vector3, _
	<OutAttribute> ByRef inertiaTensor As Matrix, _
	<OutAttribute> ByRef inertiaTensorCoM As Matrix _
)
Visual C++
public:
void GetMassProperties(
	array<PrimitiveProperties>^ primitiveProperties, 
	[OutAttribute] float% mass, 
	[OutAttribute] Vector3% centerOfMass, 
	[OutAttribute] Matrix% inertiaTensor, 
	[OutAttribute] Matrix% inertiaTensorCoM
)

Parameters

primitiveProperties
Type: array<JigLibX.Geometry..::..PrimitiveProperties>[]()[][]

[Missing <param name="primitiveProperties"/> documentation for "M:JigLibX.Collision.CollisionSkin.GetMassProperties(JigLibX.Geometry.PrimitiveProperties[],System.Single@,Microsoft.Xna.Framework.Vector3@,Microsoft.Xna.Framework.Matrix@,Microsoft.Xna.Framework.Matrix@)"]

mass
Type: System..::..Single%

[Missing <param name="mass"/> documentation for "M:JigLibX.Collision.CollisionSkin.GetMassProperties(JigLibX.Geometry.PrimitiveProperties[],System.Single@,Microsoft.Xna.Framework.Vector3@,Microsoft.Xna.Framework.Matrix@,Microsoft.Xna.Framework.Matrix@)"]

centerOfMass
Type: Vector3%

[Missing <param name="centerOfMass"/> documentation for "M:JigLibX.Collision.CollisionSkin.GetMassProperties(JigLibX.Geometry.PrimitiveProperties[],System.Single@,Microsoft.Xna.Framework.Vector3@,Microsoft.Xna.Framework.Matrix@,Microsoft.Xna.Framework.Matrix@)"]

inertiaTensor
Type: Matrix%

[Missing <param name="inertiaTensor"/> documentation for "M:JigLibX.Collision.CollisionSkin.GetMassProperties(JigLibX.Geometry.PrimitiveProperties[],System.Single@,Microsoft.Xna.Framework.Vector3@,Microsoft.Xna.Framework.Matrix@,Microsoft.Xna.Framework.Matrix@)"]

inertiaTensorCoM
Type: Matrix%

[Missing <param name="inertiaTensorCoM"/> documentation for "M:JigLibX.Collision.CollisionSkin.GetMassProperties(JigLibX.Geometry.PrimitiveProperties[],System.Single@,Microsoft.Xna.Framework.Vector3@,Microsoft.Xna.Framework.Matrix@,Microsoft.Xna.Framework.Matrix@)"]

See Also