Expand description
Weapon physics and combat trail system for Chaos RPG.
Provides swing arc simulation, weapon trail rendering (ribbon mesh generation), impact effects (camera shake, debris, distortion rings), damage number popups with physics-based arcs, combo-trail integration, block/parry feedback, and per-element visual effect descriptors.
Structs§
- Block
Effect - Visual and physical feedback when an attack is blocked.
- Camera
Shake - Screen camera shake triggered by weapon impacts.
- Combo
Milestone Effect - Describes the special visual effect triggered at a combo milestone.
- Combo
Trail Integration - Computes trail visual modifiers based on the current combo count.
- Damage
Number - A floating damage number with physics-based arc movement.
- Damage
Number Manager - Object pool of
DamageNumberinstances. Re-uses slots to avoid allocation. - Debris
Glyph - A small glyph fragment that flies off when an entity is struck.
- Element
Effect - Describes the visual effect played when a weapon with a given element strikes an entity.
- Impact
Effect - Full description of an impact event, combining camera shake, debris, trail compression, damage number, shockwave, and element-specific effects.
- Parry
Burst Particle - A single particle from the parry burst.
- Parry
Effect - Visual and gameplay feedback for a perfect-timing parry.
- Shockwave
Ring - A screen-space distortion ring (shockwave) expanding outward from the impact point.
- Spark
Particle - A single spark particle emitted on block.
- Swing
Arc - Describes a circular swing arc in 3D space (in the XZ plane centred at
origin). The weapon tip traces fromstart_angletoend_angleoverdurationseconds at the givenradius(== weapon length). - Trail
Ribbon - Converts a set of trail segments into a triangle-strip mesh suitable for GPU rendering. Each segment produces two vertices (centre +/- width * perpendicular direction). Colour fades with age; emission increases near impact points.
- Trail
Vertex - A vertex emitted by the trail ribbon builder, ready for GPU upload.
- Weapon
Physics System - Top-level system that ties together weapon trails, impact effects, damage numbers, and combo integration.
- Weapon
Profile - Physical and visual properties that govern how a weapon behaves during swings, impacts, and trail rendering.
- Weapon
Profiles - Factory methods returning canonical
WeaponProfilefor eachWeaponType. - Weapon
Trail - Manages a ring buffer of trail segments, spawning them along a swing arc and applying impact compression.
- Weapon
Trail Segment - A single segment of the weapon trail ribbon.
Enums§
- Weapon
Type - The ten weapon archetypes available in Chaos RPG.
Functions§
- spawn_
debris - Spawn a batch of debris glyphs from a hit.