SetPlane
function · gx · orchestration
- Address
0x597ad0· 38 bytes, up to0x597af5- Signature
float * __thiscall (float *this, const float *normal, float d)- Meaning
- Stores a normal and a distance as a plane
- Confidence
- verified, proof one
- Finding
- collision/contact#facet-gather
Finding: Facet gather in collision: contact
0x631e70(m), m a move by value, fills the facet lists for a sweep of a CMovement by m, with
r = +0xb0 and H = +0xb4, in these steps. It returns 1 unless the solid query fails.
| step | effect |
|---|---|
| 1 | on a transport (+0x38 nonzero): p (+0x10) and m to world by 0x630ac0's matrix M |
| 2 | e = p + m; when the cached box 0xc4e5a0 holds (e.x − r, e.y − r, e.z) and (e.x + r, e.y + r, e.z + H): return 1 |
| 3 | query box: that box grown by 1/6 on every side, joined with the cached box |
| 4 | solid query into 0xc4e52c, which empties the list first; failure returns 0 with the cache unchanged, so a later box inside it returns 1 over the emptied list |
| 5 | a swimmer (0x200000): liquid query into 0xc4e564, its return ignored, every liquid plane reversed |
| 6 | the cache becomes the query box |
| 7 | on a transport: each solid facet into transport space by M⁻¹ |
The derivation is in the doc.
Callers 15
- CGxDevice::CGxDevice gx
- CMovement::GatherSweepFacets collision
- BuildTrianglePrism collision
- CMovement::SweepVolume collision
- BuildQuadPrism collision
- CMovement::RefreshGroundNormal collision
- IsPointOverListedTriangle collision
- SetupWorldStages terrain
- DrawChunkPass terrain
- DrawMapObjectPass terrain
- BuildProjectorVolume terrain
- GatherSlotLights terrain
- GatherChunkFacets terrain
- CMapChunk::CreateDetailDoodads terrain
- CM2Model::CM2Model models
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.