mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-22 05:09:37 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
17 lines
398 B
C#
17 lines
398 B
C#
|
|
namespace Sandbox.Physics;
|
|
|
|
internal static class PhysicsEngine
|
|
{
|
|
internal static void OnActive( PhysicsBody physicsBody, Transform transform, Vector3 velocity, Vector3 linearVelocity )
|
|
{
|
|
physicsBody.OnActive( transform, velocity, linearVelocity );
|
|
}
|
|
|
|
internal static void OnPhysicsJointBreak( PhysicsJoint joint )
|
|
{
|
|
if ( !joint.IsValid() ) return;
|
|
joint.InternalJointBroken();
|
|
}
|
|
}
|