unreal.RigUnit_AddPhysicsBody

class unreal.RigUnit_AddPhysicsBody(execute_pin: RigVMExecutePin = [], owner: RigElementKey = Ellipsis, physics_body_component_key: RigComponentKey = Ellipsis, solver: RigPhysicsBodySolverSettings = [], dynamics: RigPhysicsDynamics = [], collision: RigPhysicsCollision = [], body_data: PhysicsControlModifierData = Ellipsis)

Bases: RigUnit_PhysicsBaseMutable

Adds a new physics body as a component on the owner element. Note: This node only runs as part of the construction event.

C++ Source:

  • Plugin: ControlRigPhysics

  • Module: ControlRigPhysics

  • File: RigPhysicsBodyExecution.h

Editor Properties: (see get_editor_property/set_editor_property)

  • body_data (PhysicsControlModifierData): [Read-Write] The runtime modifiable data

  • collision (RigPhysicsCollision): [Read-Write] The collision properties of the new physics element

  • dynamics (RigPhysicsDynamics): [Read-Write] The dynamics properties of the new physics element

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

  • owner (RigElementKey): [Read-Write] The owner of the newly created component (must be set/valid)

  • physics_body_component_key (RigComponentKey): [Read-Write]

  • solver (RigPhysicsBodySolverSettings): [Read-Write] * The solver to relate this new physics element to

property body_data: PhysicsControlModifierData

[Read-Write] The runtime modifiable data

Type:

(PhysicsControlModifierData)

property collision: RigPhysicsCollision

[Read-Write] The collision properties of the new physics element

Type:

(RigPhysicsCollision)

property dynamics: RigPhysicsDynamics

[Read-Write] The dynamics properties of the new physics element

Type:

(RigPhysicsDynamics)

property owner: RigElementKey

[Read-Write] The owner of the newly created component (must be set/valid)

Type:

(RigElementKey)

property physics_body_component_key: RigComponentKey

[Read-Only]

Type:

(RigComponentKey)

property solver: RigPhysicsBodySolverSettings

[Read-Write] * The solver to relate this new physics element to

Type:

(RigPhysicsBodySolverSettings)