[][src]Function smash::app::lua_bind::KineticModule::get_sum_speed_x

pub unsafe extern "C" fn get_sum_speed_x(
    arg1: *mut BattleObjectModuleAccessor,
    arg2: c_int
) -> f32

Returns the current x velocity based on the specified kinetic energy attribute

Arguments

Example

// get current x velocity
let x_vel = KineticModule::get_sum_speed_x(module_accessor, *KINETIC_ENERGY_RESERVE_ATTRIBUTE_MAIN);