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.
- Arena
Physics Manager - Top-level manager that owns the PhysicsWorld, trap systems, and room state.
- Arena
Room - A room within the arena dungeon.
- Arrow
Trap - Arrow trap: fires projectiles at regular intervals.
- Chaos
Rift Room - Chaos rift room: portal that spawns random physics objects.
- Collision
Pair - A pair of objects that are colliding.
- Contact
- Contact information from narrow-phase collision.
- Crushing
Walls - Crushing walls trap.
- Damage
Event - Damage event produced by traps hitting entities.
- Falling
Rock - State of a falling rock.
- Falling
Rocks - Falling rocks trap system.
- Flame
Jet - Flame jet trap.
- Flame
Particle - A single flame particle.
- Object
Id - Unique identifier for a physics object in the arena world.
- Pedestal
Item - Pedestal item that bobs up and down.
- Physics
Object - A physics object within the arena world.
- Physics
World - Core 2D physics simulation for the arena.
- RayHit
- Result of a ray cast against the physics world.
- Rift
Object - A rift object spawned from the chaos portal.
- Room
Exit - Exit descriptor.
- Spike
Pit - Spike pit trap.
- Swinging
Pendulum - State of a swinging pendulum trap.
- Trap
System - Aggregated trap system for a room.
- Treasure
Chest - Treasure chest with hinge-lid physics.
- Treasure
Room - Treasure room aggregator.
- Trigger
Event - Event fired when an object enters/exits a trigger volume.
Enums§
- Collision
Shape - Collision shape for arena physics objects.
- Room
Type - Type of arena room.
Type Aliases§
- Collision
Callback - Callback type for collision events.