unreal.RigUnit_HierarchyGetPhysicsBodyLinearVelocity

class unreal.RigUnit_HierarchyGetPhysicsBodyLinearVelocity(physics_body_component_key: RigComponentKey = Ellipsis, linear_velocity: Vector = Ellipsis)

Bases: RigUnit_PhysicsBase

Retrieves the current centre of mass linear velocity of the body.

C++ Source:

  • Plugin: ControlRigPhysics

  • Module: ControlRigPhysics

  • File: RigPhysicsBodyExecution.h

Editor Properties: (see get_editor_property/set_editor_property)

  • linear_velocity (Vector): [Read-Write] The current body linear velocity.

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

property linear_velocity: Vector

[Read-Only] The current body linear velocity.

Type:

(Vector)

property physics_body_component_key: RigComponentKey

[Read-Write] The Physics Body to be queried

Type:

(RigComponentKey)