[−][src]Function smash::app::lua_bind::KineticModule::add_speed
pub unsafe extern "C" fn add_speed(
arg1: *mut BattleObjectModuleAccessor,
arg2: *const Vector3f
) -> u64
Adds the speed specified by the Vector3f to the battle object's current speed
Arguments
-
module_accessor
- Pointer to BattleObjectModuleAccessor -
'speed_vector' - a reference to a Vector3f that specifies how much speed to add in what direction
Example
// add 5 units of speed upwards let speed_vector = smash::phx::Vector3f { x: x_vel, y: 0.0, z: 0.0 }; KineticModule::add_speed(module_accessor, &speed);