[−][src]Function smash::app::lua_bind::KineticModule::get_sum_speed3f
pub unsafe extern "C" fn get_sum_speed3f(
arg1: *mut BattleObjectModuleAccessor,
arg2: c_int
) -> Vector3f
Returns the current velocity based on the specified kinetic energy attribute as a Vector3f
Arguments
-
module_accessor
- Pointer to BattleObjectModuleAccessor -
'kinetic_energy_reserve_attribute' - A KINETIC_ENERGY_RESERVE_ATTRIBUTE_ const
Example
// get current velocity as a Vector3f let vel_3f = KineticModule::get_sum_speed3f(module_accessor, *KINETIC_ENERGY_RESERVE_ATTRIBUTE_MAIN);