[−][src]Function smash::app::lua_bind::KineticModule::mul_speed
pub unsafe extern "C" fn mul_speed(
arg1: *mut BattleObjectModuleAccessor,
arg2: *const Vector3f,
arg3: c_int
) -> u64
multiplies the current (specified type of) speed by the provided vector3f
Arguments
-
module_accessor
- Pointer to BattleObjectModuleAccessor -
'Vector3f' - A reference to a smash::phx::Vector3f
-
'kinetic_energy_id' - A KINETIC_ENERGY_ID const
Example
// halt all vertical speed -- let stop_rise = smash::phx::Vector3f { x: 1.0, y: 0.0, z: 1.0 }; KineticModule::mul_speed(module_accessor, &stop_rise, *FIGHTER_KINETIC_ENERGY_ID_GRAVITY);