benilla-re systems structs docs

CRibbonEmitter::TransformVertices

function · models · primitive

Address
0x7b7bc0 · 594 bytes, up to 0x7b7e11
Signature
void __thiscall (CRibbonEmitter *this, const float *m)
Meaning
Moves a ribbon's node positions, axes and ring vertices through a matrix
Confidence
verified, proof one
Finding
models/ribbons#ribbon-frame-change
Test
models::ribbonbasis_difftest

Finding: Ribbon frame change in models: ribbons

TransformVertices(m) moves a ribbon into another frame: its last and current node positions +0x20 and +0x14c and every vertex of its ring go through m (0x7bcc60), and the last and current up and forward axes +0x7c, +0x88, +0x94 and +0xa0 through its 3×3. The ring is the +0x3c vertices at +0x40, 20 bytes each with the position first, dead slots included. The edge ends +0xc4 and the tangents +0xac are not moved. Component R of an axis a is the sum of a_C·m[4C + R] over C at 53 bits, rounded once, in this order of C:

axisxyz
+0x94y, z, xz, y, xz, x, y
+0x7cz, y, xz, y, xx, z, y
+0xa0y, z, xz, y, xx, z, y
+0x88x, z, yx, z, yz, y, x

The derivation is in the doc.

Callers 1

Callees 1

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