Namespace Gravitas
Gravitas provides deterministic fixed-point 2D, 3D, and mixed-dimension physics for engine-agnostic .NET hosts. Its explicit world contexts own bodies, colliders, collision response, constraints, queries, replay state, and renderer-neutral diagnostics. Simulation timing uses long frame stamps and Chronicler wide timestamps while fixed-point step integration stays in Fixed64.
StaticSurface and StaticSurface2D declare continuity between bounded static pieces while retaining collider identities, finite boundaries and materials.
Gravitas is the physics layer of the Lockstep Simulation Framework. It builds on FixedMathSharp, SwiftCollections, GridForge, and Chronicler.
Classes
- GravitasCollision2DService
Owns GridForge-backed pure 2D collision partitioning state for one context.
- GravitasCollisionService
Owns collision partitioning state for one GravitasWorldContext.
- GravitasConstraint2DService
Owns deterministic pure 2D joints and ragdoll articulation state for one world context.
- GravitasConstraint3DService
Owns deterministic 3D joints and ragdoll articulation state for one world context.
- GravitasLogger
Provides centralized diagnostics for Gravitas runtime code.
- GravitasPhysics2DService
Context-owned pure 2D body, broad-phase, narrow-phase, response, and query service.
- GravitasPhysicsService
Owns physics registration and collision-pair state for one GravitasWorldContext.
- GravitasWorldContext
Owns Gravitas runtime state for one explicit GridForge.Grids.GridWorld.
- PhysicsEnvironment
Stores world-local physical environment values used by deterministic simulation.
- PhysicsPartition
Stores the 3D collider IDs assigned to one GridForge voxel.
- PhysicsPartition2D
Stores the pure 2D collider IDs assigned to one GridForge voxel.
- PhysicsSettings
Stores context-local configuration for deterministic physics simulation.
- PhysicsSettingsSaver
Serializes optional physics settings and applies them to an explicit world context.
- SolidBody
Represents deterministic 3D rigid-body state owned by one world context.
- SolidBody2D
Represents deterministic pure 2D body state owned by one world context.
- StaticSurface
Declares continuity between registered static meshes using triangle-surface collision in one context.
- StaticSurface2D
Declares continuity between registered static AABB or convex polygon colliders in one context.
Structs
- MatrixRow
Stores one serialized row of a physics collision matrix.
Interfaces
- IMatterAgent
Defines the host-owned object boundary Gravitas needs to bind matter into a simulation context.
Enums
- BodyFreezeAxes2D
Identifies the planar translational and yaw rotational degrees of freedom frozen on a pure 2D SolidBody2D.
- BodyFreezeAxes3D
Identifies the translational and rotational degrees of freedom frozen on a 3D SolidBody.
- ColliderReconfigurationStatus
Describes the result of an exact registered-collider reconfiguration attempt.
- ContinuousCollisionMode
Selects how a body guards its frame movement against tunneling.
- GravitasReplayHashMode
Selects which deterministic runtime state is included in replay hashes.
- GroundProbeMode
Selects the query primitive used by SolidBody when probing for ground.
- GroundProbeMode2D
Selects the pure 2D query primitive used by SolidBody2D when probing for planar support.
- GroundingMode
Selects whether a SolidBody owns ground detection through probes or receives grounding from the host.
- PhysicsMobilityType
Selects whether a body is solver controlled, host controlled, or immobile.
- PhysicsRuntimeMode
Selects which dimensional runtime path a context advances.