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
shapeIdb3ShapeId-
See the Box3D documentation.
densityfloat-
See the Box3D documentation.
updateBodyMassNativeBool-
See the Box3D documentation.
Remarks
See b3ShapeDef::density, b3Body_ApplyMassFromShapes @see b3ShapeDef::density, b3Body_ApplyMassFromShapes