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

pub unsafe extern "C" fn mul_accel(
    arg1: *mut BattleObjectModuleAccessor,
    arg2: *const Vector3f,
    arg3: c_int
) -> u64

multiplies the current (specified type of) acceleration 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

// send the character flying across the screen lol --
let zoom  = smash::phx::Vector3f { x: 10.0, y: 1.0, z: 1.0 };
KineticModule::mul_accel(module_accessor, &zoom, *FIGHTER_KINETIC_ENERGY_ID_ENV_WIND);