Skip to main content

ss_instance_slot_get_speed

Function ss_instance_slot_get_speed 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_instance_slot_get_speed( slot: *mut c_void, ) -> f32
Expand description

The speed the most recent ss_instance_slot_step drove the child at, 1.0 before the first or for a null slot. Usually the key’s speed, but while the slot ignores the implicit frame-0 key it keeps the last real key’s, so the event the host resolved says 1.0 when the child is not running at it. Scale the elapsed time handed to the child’s own instance and effect slots by its absolute value, not by the resolved event’s speed.