unreal.RigUnit_HierarchyImportDynamicsCollidersFromPhysicsAsset

class unreal.RigUnit_HierarchyImportDynamicsCollidersFromPhysicsAsset(execute_pin: RigVMExecutePin = [], dynamics_solver_component_key: RigComponentKey = Ellipsis, collider_component_name: Name = 'None', physics_asset: PhysicsAsset = Ellipsis, bone_mask: None = [], dynamics_collider_component_keys: None = [])

Bases: RigUnit_DynamicsBaseMutable

Imports collision from a physics asset and assigns it as colliders in the dynamics system

C++ Source:

  • Plugin: ControlRigDynamics

  • Module: ControlRigDynamics

  • File: RigDynamicsExecutionHelpers.h

Editor Properties: (see get_editor_property/set_editor_property)

  • bone_mask (Array[Name]): [Read-Write] If this is empty, then all bones with bodies in the physics asset will be created. Otherwise only bodies that relate to the specified bones will be created.

  • collider_component_name (Name): [Read-Write] The name to give each collider component created by this node. The same base name is used for every imported body, so the hierarchy will append unique suffixes whenever a clash occurs. DynamicsColliderComponentKeys is the authoritative list of actual names.

  • dynamics_collider_component_keys (Array[RigComponentKey]): [Read-Write] The dynamics collider component keys that were created

  • dynamics_solver_component_key (RigComponentKey): [Read-Write] Solver to add the colliders to

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

  • physics_asset (PhysicsAsset): [Read-Write] The physics asset to import colliders from

property bone_mask: None

[Read-Write] If this is empty, then all bones with bodies in the physics asset will be created. Otherwise only bodies that relate to the specified bones will be created.

Type:

(Array[Name])

property collider_component_name: Name

[Read-Write] The name to give each collider component created by this node. The same base name is used for every imported body, so the hierarchy will append unique suffixes whenever a clash occurs. DynamicsColliderComponentKeys is the authoritative list of actual names.

Type:

(Name)

property dynamics_collider_component_keys: None

[Read-Only] The dynamics collider component keys that were created

Type:

(Array[RigComponentKey])

property dynamics_solver_component_key: RigComponentKey

[Read-Write] Solver to add the colliders to

Type:

(RigComponentKey)

property physics_asset: PhysicsAsset

[Read-Write] The physics asset to import colliders from

Type:

(PhysicsAsset)