TransportHandlerOnTick
function · objectlayer · primitive
- Address
0x5f5f10· 841 bytes, up to0x5f6258- Signature
void __thiscall (void *this, uint32_t now, uint32_t elapsed)- Meaning
- Moves a transport along its animation path and carries its passengers
- Confidence
- verified, proof two
- Finding
- objectlayer/transports#the-transport-tick
- Test
objectlayer::g3_move_pos_add,objectlayer::g3_move_delta_sub,objectlayer::g3_move_dist2_gate,objectlayer::g3_move_normalize,objectlayer::g3_move_leg_speed
Finding: The transport tick in objectlayer: transports
The new position is the fields' position plus the path offset. When the squared move from the
base is below 2^-20 nothing moves: a ready entity clears flag 0x8000000 on its passengers. With
no passengers the base and entity take the new position. Otherwise each passenger is swept along
the move by SweepCarrierMove in the frame of the old base, then the base, the frame and the
entity move, the speed becomes the distance over the elapsed seconds and the passengers'
models take the frame. The velocity (slot 20) is speed × heading, kept from the last carried
move.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 11
- SetVector3 spline
- ClntObjMgrObjectPtr objectlayer
- GetTransportPathOffset objectlayer
- CGObject_C::UpdateNode objectlayer
- CMovement::SweepCarrierMove collision
- CWorld::IsEntityReady terrain
- CWorld::SetEntityTransform terrain
- CM2Model::SetTransportFrame models
- TranslateMatrix cmath
- RotateMatrix cmath
- CMovement::ClearFlagBit27 collision
Calls and jumps by a bare address, from tables/calls.tsv.