RayHitPickCandidates
function · ui · orchestration
- Address
0x480a50· 572 bytes, up to0x480c8b- Meaning
- Registers the admitted candidates as hit-test instances and returns the GUID and distance of the nearest ray hit
- Confidence
- verified, proof one
- Finding
- ui/worldpick#the-candidate-filters
- Test
ui::glue_geom_480_480a50_480df0_dist_scale,ui::glue_geom_480_480a50_coord_delta
Finding: The candidate filters in ui: the world pick
0x480a50 walks the list and runs 0x480780(node, flags) on each node. A node that passes is registered as a hit-test instance (0x480d90, for the model and its children) and the scene ray (0x7089c0) then returns the nearest hit's node.
0x480780 admits a unit with flag 0x8 and a player with 0x10, and sends both to 0x480610. It admits a game object with 0x4 and a corpse with 0x40, each also needing 0x6e62e0 or 0x6e6260 respectively while a spell awaits a target. Every other type is refused.
The derivation is in the doc.
Callers 2
- TracePick ui
- TraceGlareOcclusion lighting
Callees 9
- SetVector3 spline
- ClntObjMgrObjectPtr objectlayer
- AdmitPickCandidate ui
- HitTestValue ui
- SetModelHitTest ui
- GetDeviceView gx
- M2SceneEnableRayHits models
- M2SceneRayHit models
- TransformPoint cmath
Calls and jumps by a bare address, from tables/calls.tsv.