Skip to main content

Module arena_physics

Module arena_physics 

Source
Expand description

Arena physics objects and environmental interactions for Chaos RPG.

Provides a self-contained 2D physics world with broad-phase (sweep-and-prune), narrow-phase collision detection (circle-circle, circle-AABB, AABB-AABB), impulse-based collision response, raycasting, overlap tests, and a rich set of arena room types with interactive traps, treasure, and chaos rift mechanics.

Structs§

AABB
Axis-aligned bounding box for broad-phase.
ArenaPhysicsManager
Top-level manager that owns the PhysicsWorld, trap systems, and room state.
ArenaRoom
A room within the arena dungeon.
ArrowTrap
Arrow trap: fires projectiles at regular intervals.
ChaosRiftRoom
Chaos rift room: portal that spawns random physics objects.
CollisionPair
A pair of objects that are colliding.
Contact
Contact information from narrow-phase collision.
CrushingWalls
Crushing walls trap.
DamageEvent
Damage event produced by traps hitting entities.
FallingRock
State of a falling rock.
FallingRocks
Falling rocks trap system.
FlameJet
Flame jet trap.
FlameParticle
A single flame particle.
ObjectId
Unique identifier for a physics object in the arena world.
PedestalItem
Pedestal item that bobs up and down.
PhysicsObject
A physics object within the arena world.
PhysicsWorld
Core 2D physics simulation for the arena.
RayHit
Result of a ray cast against the physics world.
RiftObject
A rift object spawned from the chaos portal.
RoomExit
Exit descriptor.
SpikePit
Spike pit trap.
SwingingPendulum
State of a swinging pendulum trap.
TrapSystem
Aggregated trap system for a room.
TreasureChest
Treasure chest with hinge-lid physics.
TreasureRoom
Treasure room aggregator.
TriggerEvent
Event fired when an object enters/exits a trigger volume.

Enums§

CollisionShape
Collision shape for arena physics objects.
RoomType
Type of arena room.

Type Aliases§

CollisionCallback
Callback type for collision events.