mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-16 07:12:27 +02:00
28 lines
879 B
C#
28 lines
879 B
C#
using System;
|
|
|
|
namespace Robust.Shared.Physics
|
|
{
|
|
internal static class PhysicsConstants
|
|
{
|
|
/// <summary>
|
|
/// The radius of the polygon/edge shape skin. This should not be modified. Making
|
|
/// this smaller means polygons will have an insufficient buffer for continuous collision.
|
|
/// Making it larger may create artifacts for vertex collision.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Default is set to be 2 x linearslop.
|
|
/// </remarks>
|
|
public const float PolygonRadius = 2 * LinearSlop;
|
|
|
|
/// <summary>
|
|
/// Minimum buffer distance for positions.
|
|
/// </summary>
|
|
public const float LinearSlop = 0.005f;
|
|
|
|
/// <summary>
|
|
/// Minimum buffer distance for angles.
|
|
/// </summary>
|
|
public const float AngularSlop = 2.0f / 180.0f * MathF.PI;
|
|
}
|
|
}
|