mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-02 08:50:18 -04:00
29 lines
685 B
C#
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 ) { }
|
|
}
|