Table of Contents

Class CollisionDetectionMixed

Namespace
Gravitas.CollisionHandling
Assembly
Gravitas.dll

Deterministic mixed 2D/3D narrow-phase collision checks.

public static class CollisionDetectionMixed
Inheritance
CollisionDetectionMixed
Inherited Members

Methods

TryBuildManifold(LSCollider, LSCollider2D, ContactManifold)

Rebuilds all mixed contacts in a caller-owned manifold, with A identifying the 3D participant and B the embedded 2D participant.

public static bool TryBuildManifold(LSCollider collider3D, LSCollider2D collider2D, ContactManifold manifold)

Parameters

collider3D LSCollider
collider2D LSCollider2D
manifold ContactManifold

Returns

bool

Remarks

Compound leaves retain separate provenance and materials. The buffer is cleared even when the pair is separated.

TryCollide(LSCollider, LSCollider2D, out MixedContact)

Tests a 3D collider against an embedded 2D collider and returns a representative contact.

public static bool TryCollide(LSCollider collider3D, LSCollider2D collider2D, out MixedContact contact)

Parameters

collider3D LSCollider
collider2D LSCollider2D
contact MixedContact

Returns

bool

Remarks

The representative is the deepest retained row, not a whole-owner escape. Use TryBuildManifold(LSCollider, LSCollider2D, ContactManifold) to inspect every constraint.