Repository navigation
v1.7.0
1.7.0 (2026-12-04)
This release changes how queries treat sensors. Closest casts and the character mover now pass over sensor shapes, as the step does, so a trigger zone no longer stops a sight line or a walking character; a filter can ask for the old behavior. The simulation steps to the same bits as 1.6.0, and no golden line moves. The snapshot and tape formats are unchanged, but as in every minor release, snapshots and tapes written by 1.6 are refused with m2_errorVersion.
Changed
- Query results: closest casts and the character mover pass over sensors (#422).
m2World_CastRayClosest,m2World_CastCircleClosest,m2World_CastCapsuleClosestandm2World_CastPolygonClosestno longer stop at a sensor: they hit what lies behind it, or miss.m2World_CollideMovergives no plane for a sensor, so a character walks into a trigger zone instead of standing against it.- With the default filter, a game that cast against its trigger zones to find them gets other answers. Setting the new
m2QueryFilter.sensorsBlockrestores the 1.6 results; an all-hits cast or an overlap still finds them either way. - The all-hits casts and the overlap queries list sensors as before, and their documentation now says so.
- The simulation is untouched:
test/hashes.txtis the same as 1.6.0's, since no golden scene pins query results.
Added
- Sensors in queries (#422):
m2QueryFilter.sensorsBlock, false inm2DefaultQueryFilter, makes closest casts and the mover stop at sensors as in 1.6.m2QueryFiltergrows from 16 to 24 bytes.m2CastHit.isSensormarks a hit on a sensor, so an all-hits cast can name the triggers it passed before what blocked it; closest casts andm2Shape_CastRay, which casts at one shape, set it too.m2CastHitgrows from 48 to 56 bytes.- Both fields go at the end of their structs. A program built against 1.6 that fills a filter from
m2DefaultQueryFilter, or with a designated or zero initializer, gets the new behavior when rebuilt.