CMovement::TransportToWorld
function · collision · orchestration
- Address
0x7c4930· 198 bytes, up to0x7c49f5- Signature
NTempest::C3Vector * __thiscall (CMovement *this, NTempest::C3Vector *out, const NTempest::C3Vector *in)- Meaning
- Copies a point, or multiplies it by the transport matrix from 0x630ac0 when a transport GUID is set
- Confidence
- verified, proof one
- Finding
- collision/kinematics#transport-space-transforms
Finding: Transport space transforms in collision: kinematics
With a zero transport GUID (+0x38, +0x3c) each transform is the identity. Otherwise 0x630ac0
builds the transport's 4×4 matrix M, and:
| function | result |
|---|---|
0x7c4930(out, in) | in · M, by 0x7bca80 |
0x7c4a00(out, in) | in through the rigid inverse of M, 0x7bd820(…, 1.0) |
0x7c4ae0(f) | F + f, F the transport's facing from 0x630b70 |
0x7c4b30(f) | f − F |
0x7c4b80(out) | the +0x24 vector through M's 3×3 part |
The facings wrap once: above 2π subtracts 2π; else below 0 adds 2π; exactly 2π and NaN pass.
M is built from the transport object's position and facing, so 0x7c4930 and 0x7c4ae0 map
transport space to world and the other two map back.
The derivation is in the doc.
Callers 14
- CGUnit_C::GetPosition objectlayer
- CGUnit_C::OnMonsterMove objectlayer
- CGUnit_C::UpdateAutoMove objectlayer
- CGUnit_C::GetAutoMoveTarget objectlayer
- CGUnit_C::StartAutoMove objectlayer
- CGUnit_C::DrawAutoMoveTarget objectlayer
- CMovement::GetSplineStep collision
- CMovement::SnapIfFar collision
- CMovement::SetCollisionSize collision
- CMovement::Teleport collision
- CMovement::IsVolumeObstructed collision
- CMovement::ResolveDisplacement collision
- CMovement::FollowSpline collision
- CMovement::WriteStatus collision
Callees 2
- BuildTransportMatrix collision
- TransformPoint cmath
Calls and jumps by a bare address, from tables/calls.tsv.