s_ribbonMinLifespan
global · models
- Address
0x81d878· 4 bytes, up to0x81d87b- Type
const float- Meaning
- Holds 0.25, the shortest lifespan a ribbon keeps
- Confidence
- verified, proof one
- Finding
- models/ribbons#ribbon-ring
Finding: Ribbon ring in models: ribbons
A ribbon keeps its edges in a ring of n = ceil(ceil(rate)·L) + 2 slots, with rate the record's
edges per second (+0x94) and L its lifespan (+0x98) raised to at least 0.25. Each slot holds
an age and a 40-byte vertex pair, bottom then top, each a position and texture coordinates; edges
live from the tail to the head, and the head slot holds the uncommitted edge at the bone. The
index array holds i mod 2n for i below 4n, so a draw of the live run reads straight through
the wrap. A new ribbon starts hidden, 10 above and 10 below, with no gravity.
The derivation is in the doc.