INNER CODE UNIT · C#
OutOfPlaneInertiaScale
stride3d/stride-community-toolkit · src/Stride.CommunityToolkit.Bepu/Body2DComponent.cs:77
private const float OutOfPlaneInertiaScale = 1e-4f;
// Tracks the kinematic state the rotation lock was applied for, so it can be restored when the
// body switches back to dynamic and Bepu reinstates the full shape inertia
private bool _lockedWhileKinematic;
private float _zTolerance = DefaultZTolerance;
/// <summary>
/// Gets or sets how far the body may drift off the Z = 0 plane before it is pulled back, in world
/// units. Defaults to 0.001, one millimetre for a scene built at one unit per metre.
/// </summary>
/// <remarks>
/// Out-of-plane velocity is always cleared; this value only controls when positional correction
/// starts.
/// </remarks>
/// <exception cref="ArgumentOutOfRangeException">
/// The value is not finite, or is not greater than zero.