nanos world API Reference Unofficial documentation
Function Shared Moderate

Character:SetPhysicalAnimationSettings

Applies the physical animation settings to the body given

Syntax

Lua
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)

Parameters

Name Type Default Description
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 optional float 0 The strength used to correct orientation error
angular_velocity_strength optional float 0 The strength used to correct angular velocity error
position_strength optional float 0 The strength used to correct linear position error. Only used for non-local simulation
velocity_strength optional float 0 The strength used to correct linear velocity error. Only used for non-local simulation
max_linear_force optional float 0 The max force used to correct linear errors
max_angular_force optional float 0 The max force used to correct angular errors