Table of Contents

Method b3World_Step

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

b3World_Step(b3WorldId, float, int)

Simulate a world for one time step. This performs collision detection, integration, and constraint solution.

public static extern void b3World_Step(b3WorldId worldId, float timeStep, int subStepCount)

Parameters

worldId b3WorldId

The world to simulate

timeStep float

The amount of time to simulate, this should be a fixed number. Usually 1/60.

subStepCount int

The number of sub-steps, increasing the sub-step count can increase accuracy. Usually 4.