unreal.RigUnit_HierarchySetCollision

class unreal.RigUnit_HierarchySetCollision(execute_pin: RigVMExecutePin = [], physics_body_component_key: RigComponentKey = Ellipsis, collision: RigPhysicsCollision = [])

Bases: RigUnit_PhysicsBaseMutable

Sets the collision for a physics component body. Note: This node only runs during the construction event (before physics instantiation, after which this data is frozen).

C++ Source:

  • Plugin: ControlRigPhysics

  • Module: ControlRigPhysics

  • File: RigPhysicsBodyExecution.h

Editor Properties: (see get_editor_property/set_editor_property)

  • collision (RigPhysicsCollision): [Read-Write] Specifies the collision associated with the Physics Body

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

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

property collision: RigPhysicsCollision

[Read-Write] Specifies the collision associated with the Physics Body

Type:

(RigPhysicsCollision)

property physics_body_component_key: RigComponentKey

[Read-Write] The Physics Body to be updated

Type:

(RigComponentKey)