IScenePhysicsEventsclass

Allows events before and after the the physics step

objectIScenePhysicsEvents
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public abstract interface Sandbox.IScenePhysicsEvents

Methods4

Showing 4 methods

public virtual void OnFellAsleep(Sandbox.Rigidbody body)PUBLICVIRTUAL

Called when a rigidbody goes to sleep.

ParameterTypeDescription
bodyRigidbody
Returns:void

public virtual void OnOutOfBounds(Sandbox.Rigidbody body)PUBLICVIRTUAL

Called when a rigidbody goes out of bounds.

ParameterTypeDescription
bodyRigidbody
Returns:void

public virtual void PostPhysicsStep()PUBLICVIRTUAL

Called after the physics step is run

Returns:void

public virtual void PrePhysicsStep()PUBLICVIRTUAL

Called before the physics step is run. This is called pretty much right after FixedUpdate.

Returns:void

On this page