Table of Contents

Method b3Shape_SetDensity

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3Shape_SetDensity(b3ShapeId, float, NativeBool)

Set the mass density of a shape, usually in kg/m^3. This will optionally update the mass properties on the parent body.

public static extern void b3Shape_SetDensity(b3ShapeId shapeId, float density, NativeBool updateBodyMass)

Parameters

shapeId b3ShapeId

See the Box3D documentation.

density float

See the Box3D documentation.

updateBodyMass NativeBool

See the Box3D documentation.

Remarks

See b3ShapeDef::density, b3Body_ApplyMassFromShapes @see b3ShapeDef::density, b3Body_ApplyMassFromShapes