benilla-re systems structs docs

M2SceneEnableRayHits

function · models · orchestration

Address
0x7089b0 · 11 bytes, up to 0x7089ba
Meaning
Sets the scene flag that enables ray hits against its models
Confidence
inferred
Finding
models/scene#ray-hits

Finding: Ray hits in models: the scene

0x7089c0(p0, p1, &f, retry) finds the nearest triangle of the hit-test instances on the segment within f, writes its fraction and returns the instance's user value, else 0. Candidates are that entry's spheres placed by the world matrix, which an unanimated mode 3 instance without a parent rebuilds; other unanimated instances are skipped. Mode 3 tests the collision triangles. Modes 1 and 2 skin each visible submesh of view 0 on the CPU and test its triangles, skipping units with flag 8, alpha 0 and, for mode 2, blends other than 0. With nothing hit and retry set, a second pass covers the whole segment with fattened meshes, and a higher priority beats a nearer hit.

The derivation is in the doc.

Callers 4

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.