Host typegenerated
RayHit2d
A copied 2D ray hit snapshot. Null means no hit. Holds entity, world-space point and normal, and distance in world units. Copying or editing a snapshot never changes physics.
4 members · engine 0.1.0
RayHit2d.distance: numberDistance from the ray origin, in world units.RayHit2d.entity: EntityThe entity owning the hit collider piece.RayHit2d.normal: Vec2The world-space surface normal, as Vec2. Zero for a hit at distance zero.RayHit2d.point: Vec2The hit point in world coordinates, as Vec2.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b