Table of Contents

Method b3World_SetGravity

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

b3World_SetGravity(b3WorldId, Vector3)

Set the gravity vector for the entire world. Box3D has no concept of an up direction and this is left as a decision for the application. Usually in m/s^2.

public static extern void b3World_SetGravity(b3WorldId worldId, Vector3 gravity)

Parameters

worldId b3WorldId

See the Box3D documentation.

gravity Vector3

See the Box3D documentation.

Remarks

See b3WorldDef @see b3WorldDef