s_catmullRomCurveVtable
global · spline
- Address
0x7ffd84· 36 bytes, up to0x7ffda7- Type
void *[9]- Meaning
- Holds the Catmull-Rom curve vtable stored at +0x2c of the movement spline object
- Confidence
- verified, proof one
- Finding
- spline#curve-objects
Finding: Curve objects in spline
A curve object is a vtable and a record. Three vtables of nine slots exist: the base 0x7ffdbc, the
Catmull-Rom curve 0x7ffd84 and the Bezier curve 0x81d90c. Slots 0 to 8 are the total length, the
rebuild of the segment lengths, the point at an arc-length and at a uniform parameter, the tangent at
each, the frame, the setting of the control points and the extraction of points. The base holds the
pure-call stub 0x40a2d7 in slots 0 to 6.
| offset | field |
|---|---|
+0 | vtable |
+4 | total length, a float |
+8, +0xc | control point count, both stored by 0x4534f0 |
+0x10 | control point array, 12 bytes a point |
+0x18 to +0x24 | segment length list: capacity, count, data, growth quantum |
+0x28 | mode: 0 straight chords, else cubic |
The derivation is in the doc.