benilla-re systems structs docs

GetTransportPathOffset

function · objectlayer · primitive

Address
0x5f6280 · 528 bytes, up to 0x5f648f
Signature
float * __thiscall (void *this, float *out, uint32_t now)
Meaning
Returns a transport's path offset at a time, rotated by its quaternion, playing row animations
Confidence
verified, proof two
Finding
objectlayer/transports#the-transports-path
Test
objectlayer::gameobject_path_eval_difftest, objectlayer::gameobject_path_eval_large_times_difftest

Finding: The transport's path in objectlayer: transports

A type 11 handler, 0x5c bytes, holds its TransportAnimation rows (+0x20, count +0x24), the current row +0x28, its base position +0x2c, speed +0x38, heading +0x3c and the animation it played +0x58, 0xd0 at first. Its rows are the first run with the object's entry. The offset at a time t = (now + +0x278) mod the last row's time lies between the row A at or before t and the next row B: f = (t − A) / (B − A), p = A·(1 − f) + B·f, turned by the object's rotation quaternion. A's animation plays when it changes.

The derivation is in the doc.

Callers 2

Callees 3

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