IScenePhysicsEvents
This interface allows you to wrap logic around the physics step. This can be useful when you have an object, or a system, that works closely with the physics system.
This interface allows you to wrap logic around the physics step. This can be useful when you have an object, or a system, that works closely with the physics system.
public interface IScenePhysicsEvents : ISceneEvent<IScenePhysicsEvents>
{
/// <summary>
/// Called before the physics step is run. This is called pretty much
/// right after FixedUpdate.
/// </summary>
void PrePhysicsStep() { }
/// <summary>
/// Called after the physics step is run
/// </summary>
void PostPhysicsStep() { }
}
Referenced API
Canonical API pages mentioned in this guide.
Sandbox.IScenePhysicsEvents
Allows events before and after the the physics step
Sandbox.IScenePhysicsEvents.PrePhysicsStep
Called before the physics step is run. This is called pretty much right after FixedUpdate.
Sandbox.IScenePhysicsEvents.PostPhysicsStep
Called after the physics step is run
Sandbox.Movement.MoveMode.PrePhysicsStep
Called before the physics step is run
Sandbox.Movement.MoveMode.PostPhysicsStep
Called after the physics step is run
Sandbox.Movement.MoveModeLadder.PostPhysicsStep
No summary available.
Sandbox.Movement.MoveModeWalk.PrePhysicsStep
No summary available.
Sandbox.Movement.MoveModeWalk.PostPhysicsStep
No summary available.