Type Alias SCNActionTimingFunction

Source
pub type SCNActionTimingFunction = *mut Block<dyn Fn(c_float) -> c_float>;
Available on crate features SCNAction and block2 only.
Expand description

A custom timing function for SCNActions. Input time will be between 0.0 and 1.0 over the duration of the action. Return values must be 0.0-1.0 and increasing and the function must return 1.0 when the input time reaches 1.0.

See also Apple’s documentation