unreal.RigUnit_HierarchySetPhysicsBodyDamping

class unreal.RigUnit_HierarchySetPhysicsBodyDamping(execute_pin: RigVMExecutePin = [], physics_body_component_key: RigComponentKey = Ellipsis, linear_damping: float = 0.0, angular_damping: float = 0.0)

Bases: RigUnit_PhysicsBaseMutable

Sets the linear and angular damping on the body. This will reduce the velocity, to make the body start tracking the simulation space. Note: Although damping is currently stored on Dynamics, the solver re-reads it each step, so this can be modified after physics instantiation.

C++ Source:

  • Plugin: ControlRigPhysics

  • Module: ControlRigPhysics

  • File: RigPhysicsBodyExecution.h

Editor Properties: (see get_editor_property/set_editor_property)

  • angular_damping (float): [Read-Write] The desired angular damping

  • execute_pin (RigVMExecutePin): [Read-Write] This property is used to chain multiple mutable units together

  • linear_damping (float): [Read-Write] The desired linear damping

  • physics_body_component_key (RigComponentKey): [Read-Write] The Physics Body to be updated

property angular_damping: float

[Read-Write] The desired angular damping

Type:

(float)

property linear_damping: float

[Read-Write] The desired linear damping

Type:

(float)

property physics_body_component_key: RigComponentKey

[Read-Write] The Physics Body to be updated

Type:

(RigComponentKey)