Contents

element::ageOverLifetime

Returns the normalized age of the element as a ratio of its lifetime.

Declaration

float element::ageOverLifetime()

Return Value

A normalized value representing age divided by lifetime

Discussion

Use this function to get a value between 0.0 (just created) and 1.0 (end of life), which is ideal for interpolating properties over the element’s lifetime.