Table of Contents

Struct CharacterContact

Namespace
Box3D
Assembly
Box3D.NET.dll

A plane between a character capsule and something it is touching.

public readonly record struct CharacterContact : IEquatable<CharacterContact>

Implements

Inherited Members

Remarks

Reported by Box3D.PhysicsWorld.CollideCapsule``1(Box3D.Capsule,System.Numerics.Vector3,``0@,System.Nullable{Box3D.QueryFilter}). Turn it into a Box3D.CollisionPlane to feed the solver, which is where you decide how hard the surface pushes back.

Properties

Normal

Gets the outward normal of the surface.

Offset

Gets the signed distance from the capsule centre to the plane, along the normal.

Point

Gets the closest point on the touched shape, relative to the query origin.

Shape

Gets the shape the capsule is touching.