Funzione
Moderato
Character:SetPhysicalAnimationSettings
Applies the physical animation settings to the body given
Non ancora tradotto
Sintassi
my_character:SetPhysicalAnimationSettings(bone, include_self, is_local_simulation, orientation_strength = 0, angular_velocity_strength = 0, position_strength = 0, velocity_strength = 0, max_linear_force = 0, max_angular_force = 0)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
bone
|
string | — | The body we will be driving |
include_self
|
boolean | — | Whether to modify the given body |
is_local_simulation
|
boolean | — | Whether the drive targets are in world space or local |
orientation_strength
facoltativo
|
float | 0 |
The strength used to correct orientation error |
angular_velocity_strength
facoltativo
|
float | 0 |
The strength used to correct angular velocity error |
position_strength
facoltativo
|
float | 0 |
The strength used to correct linear position error. Only used for non-local simulation |
velocity_strength
facoltativo
|
float | 0 |
The strength used to correct linear velocity error. Only used for non-local simulation |
max_linear_force
facoltativo
|
float | 0 |
The max force used to correct linear errors |
max_angular_force
facoltativo
|
float | 0 |
The max force used to correct angular errors |