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