Class StaticSurface
- Namespace
- Gravitas
- Assembly
- Gravitas.dll
Declares continuity between registered static meshes using triangle-surface collision in one context.
public sealed class StaticSurface : IDisposable, IRecordable
- Inheritance
-
StaticSurface
- Implements
-
IRecordable
- Inherited Members
Remarks
Exact shared boundary spans participate in one physical surface while members retain their collider identities, materials, queries and overlap events. Members require Concave; their geometry may be convex or closed, but a closed shell is not treated as a filled convex volume. Create declarations through CreateStaticSurface(ReadOnlySpan<LSMeshCollider>). 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
chroniclerIChroniclerThe active chronicler pass.
ReplaceMembers(ReadOnlySpan<LSMeshCollider>)
Atomically replaces the registered members of this declaration.
public void ReplaceMembers(ReadOnlySpan<LSMeshCollider> members)
Parameters
membersReadOnlySpan<LSMeshCollider>Distinct active meshes in Concave with bodyless or explicit-static ownership in this context. May be empty.
Remarks
Call between complete fixed steps. Rejection preserves the previous membership. Membership permits exact joining; 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.