mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-05-19 20:36:45 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
29 lines
846 B
C#
29 lines
846 B
C#
namespace Sandbox;
|
|
|
|
/// <summary>
|
|
/// Listen to all collision events that happen during a physics step.
|
|
/// </summary>
|
|
public interface ISceneCollisionEvents
|
|
{
|
|
/// <summary>
|
|
/// Called when a collider/rigidbody starts touching another collider.
|
|
/// </summary>
|
|
void OnCollisionStart( Collision collision ) { }
|
|
|
|
/// <summary>
|
|
/// Called once per physics step for every collider being touched.
|
|
/// </summary>
|
|
void OnCollisionUpdate( Collision collision ) { }
|
|
|
|
/// <summary>
|
|
/// Called when a collider/rigidbody stops touching another collider.
|
|
/// </summary>
|
|
void OnCollisionStop( CollisionStop collision ) { }
|
|
|
|
/// <summary>
|
|
/// Called when a collider/rigidbody hits another collider, including repeated hits
|
|
/// on the same shape while they are already touching.
|
|
/// </summary>
|
|
void OnCollisionHit( Collision collision ) { }
|
|
}
|