Table of Contents

Class StaticSurface2D

Namespace
Gravitas
Assembly
Gravitas.dll

Declares continuity between registered static AABB or convex polygon colliders in one context.

public sealed class StaticSurface2D : IDisposable, IRecordable
Inheritance
StaticSurface2D
Implements
IRecordable
Inherited Members

Remarks

Exact shared boundary spans participate in one filled planar surface while members retain their collider identities, materials, queries and overlap events. Mixed contacts also preserve each member's finite embedded height and thickness. Create declarations through CreateStaticSurface(ReadOnlySpan<LSCollider2D>). Context reset or disposal ends the declaration's lifetime.

Methods

Dispose()

Ends this declaration and restores independent member response.

public void Dispose()

Remarks

Call between complete fixed steps. Members remain registered. Repeated disposal is harmless.

Exceptions

InvalidOperationException

A fixed step is in progress.

RecordData(IChronicler)

Records the current instance state to the provided chronicler.

public void RecordData(IChronicler chronicler)

Parameters

chronicler IChronicler

The active chronicler pass.

ReplaceMembers(ReadOnlySpan<LSCollider2D>)

Atomically replaces the registered members of this declaration.

public void ReplaceMembers(ReadOnlySpan<LSCollider2D> members)

Parameters

members ReadOnlySpan<LSCollider2D>

Distinct active AABB or convex polygon colliders with bodyless or explicit-static ownership in this context. May be empty.

Remarks

Call between complete fixed steps. Compound roots and leaves are ineligible. Rejection preserves the previous membership; disconnected pieces retain their boundaries. Deactivated members must be explicitly added again after reinitialization.

Exceptions

ArgumentException

A member is ineligible or belongs to another declaration.

ObjectDisposedException

This declaration or its context has ended.

InvalidOperationException

A fixed step is in progress.