Funzione
Veloce
CharacterSimple:SetAirControl
Sets the amount of movement control allowed when it is in air
Non ancora tradotto
Sintassi
my_character_simple:SetAirControl(air_control = 0.2, boost_multiplier = 512, boost_velocity_threshold = 25)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
air_control
facoltativo
|
float | 0.2 |
When falling, amount of lateral movement control available to the character. 0 = no control, 1 = full control at max speed of MaxWalkSpeed |
boost_multiplier
facoltativo
|
float | 512 |
When falling, multiplier applied to air_control when lateral velocity is less than boost_velocity_threshold. Setting this to zero will disable air control boosting. Final result is clamped at 1 |
boost_velocity_threshold
facoltativo
|
float | 25 |
When falling, if lateral velocity magnitude is less than this value, air_control is multiplied by boost_multiplier. Setting this to zero will disable air control boosting |