Host typegenerated
CharacterMotion2d
A copied result of scene-owned 2D character movement. Gameplay reads support and collision flags to choose its own gravity, jump and recovery policy. This is historical movement, not a live solver contact or a pending request.
18 members · engine 0.1.0
CharacterMotion2d.carry_collisions: List<RayHit2d>Copied ordered carry RayHit2d values, filtered to active existing entities.CharacterMotion2d.carry_iteration_limit_reached: boolWhether the carry sweep exhausted its iteration budget; false without carry.CharacterMotion2d.carry_requested: Vec2Platform translation/rotation-point displacement requested for carry, or zero without carry. Remains historical even when the platform reference is filtered.CharacterMotion2d.carry_started_penetrating: boolWhether the carry sweep started in strict penetration; false without carry.CharacterMotion2d.carry_translation: Vec2Collision-limited carry displacement included once in translation, or zero without carry.CharacterMotion2d.collisions: List<RayHit2d>Copied ordered slide RayHit2d values, filtered to active existing entities. Distances belong to each sweep phase.CharacterMotion2d.ground: RayHit2d?Nearest support-query RayHit2d before landing/snap, or null when absent or inactive. Distance describes that downward travel.CharacterMotion2d.ground_started_penetrating: boolWhether the support probe started in strict penetration.CharacterMotion2d.ground_walkable: boolWhether the ground hit meets the authored up/slope limit; false when the hit is absent or filtered.CharacterMotion2d.grounded: boolWhether the completed endpoint has walkable support and the request was not ascending or penetrating. False if the ground entity is now inactive or removed.CharacterMotion2d.iteration_limit_reached: boolWhether the selected slide exhausted its bounded iteration budget.CharacterMotion2d.platform: EntityVerified carrying entity, or null without carry or when it is now inactive/removed.CharacterMotion2d.remaining: Vec2Unsatisfied slide displacement when the iteration budget is exhausted; collision-blocked normal motion is discarded.CharacterMotion2d.slide_translation: Vec2Selected collision-limited slide displacement, after carry or from the lifted pose of an accepted step.CharacterMotion2d.snap_translation: Vec2Additional downward landing/snap translation, or zero.CharacterMotion2d.started_penetrating: boolWhether the selected character slide started in strict penetration; carry reports its own flag.CharacterMotion2d.step_translation: Vec2Accepted step lift, or zero for ordinary movement.CharacterMotion2d.translation: Vec2Total world displacement applied once at the last fixed step, including slide, step, snap and platform carry.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b