Table of Contents

Property Offset

Namespace
Box3D
Assembly
Box3D.NET.dll

Offset

Gets the plane offset along its normal.

public float Offset { get; init; }

Property Value

float

Remarks

The plane is dot(Normal, point) = Offset, so a point's separation from it is dot(Normal, point) - Offset: positive on the outside, negative once past it.

The sign is worth pausing over when building planes by hand. For a capsule at the origin, a surface it is clear of needs a negative offset; a positive one puts the capsule inside the plane and the solver will push it out. Planes that come from Box3D.PhysicsWorld.CollideCapsule``1(Box3D.Capsule,System.Numerics.Vector3,``0@,System.Nullable{Box3D.QueryFilter}) already have the right sign.