Function
Fast
Player:SetCameraSpeedSettings
Sets the Player's Camera Speed Settings (if not possessing a Character)
Syntax
my_player:SetCameraSpeedSettings(max_speed = 1200, acceleration = 4000, deceleration = 4000, turning_boost = 8)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
max_speed
optional
|
float | 1200 |
Maximum velocity magnitude allowed |
acceleration
optional
|
float | 4000 |
Acceleration applied by input (rate of change of velocity) |
deceleration
optional
|
float | 4000 |
Deceleration applied when there is no input (rate of change of velocity) |
turning_boost
optional
|
float | 8 |
Setting affecting extra force applied when changing direction, making turns have less drift and become more responsive. Velocity magnitude is not allowed to increase, that only happens due to normal acceleration. It may decrease with large direction changes. Larger values apply extra force to reach the target direction more quickly, while a zero value disables any extra turn force. |