YaForcerComponent¶
Beta
YaForcerComponent
controls the force acted on the player and its effect.Functions¶
void Execute(number entityID)Beta
Which player being forced by id
which player being forced by entity
void SetInitialSpeed(number speed)Beta
Sets the initial speed (m/s).
void SetForce(number force)Beta
Specifies the force acted on the player. If the force is lager than fraction (10 N), the player moves with constant acceleration motion. If the force is smaller than the fraction (10 N), the player moves with constant deceleration motion.
Set the real-time direction of the movement.
number GetSpeed()Beta
Gets the real-time speed (m/s).
number GetForce()Beta
Gets the real-time force.
float3 GetDirection()Beta
Gets the real-time direction of the movement.