Skip to content

v1.7.0

Choose a tag to compare

@rawframe-release rawframe-release released this 05 Dec 10:29
1bbe979

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_CastCapsuleClosest and m2World_CastPolygonClosest no longer stop at a sensor: they hit what lies behind it, or miss.
    • m2World_CollideMover gives 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.sensorsBlock restores 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.txt is the same as 1.6.0's, since no golden scene pins query results.

Added

  • Sensors in queries (#422):
    • m2QueryFilter.sensorsBlock, false in m2DefaultQueryFilter, makes closest casts and the mover stop at sensors as in 1.6. m2QueryFilter grows from 16 to 24 bytes.
    • m2CastHit.isSensor marks a hit on a sensor, so an all-hits cast can name the triggers it passed before what blocked it; closest casts and m2Shape_CastRay, which casts at one shape, set it too. m2CastHit grows 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.