Interface ISubstepCallback
Callback interface for per-substep powertrain updates. Implement this on VehicleController to receive callbacks before each wheel substep.
Namespace: NWH.WheelController3D
Assembly: NWH.WheelController.dll
Syntax
public interface ISubstepCallback
Methods
| Edit this page View SourceOnBeforeSubstep(float, WheelControllerGroup)
Called before each wheel substep. Use this to run powertrain solver with substep delta time. The group is provided so the powertrain can step wheels internally for immediate counterTorque.
Declaration
void OnBeforeSubstep(float substepDt, WheelControllerGroup group)
Parameters
| Type | Name | Description |
|---|---|---|
| float | substepDt | The delta time for this substep. |
| WheelControllerGroup | group | The rigidbody group containing state and wheel list. |