Files
sbox-public/engine/Sandbox.Engine/Scene/Events/IScenePhysicsEvents.cs
2026-03-06 08:41:44 +00:00

29 lines
685 B
C#

namespace Sandbox;
/// <summary>
/// Allows events before and after the the physics step
/// </summary>
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() { }
/// <summary>
/// Called when a rigidbody goes out of bounds.
/// </summary>
void OnOutOfBounds( Rigidbody body ) { }
/// <summary>
/// Called when a rigidbody goes to sleep.
/// </summary>
void OnFellAsleep( Rigidbody body ) { }
}