unreal.RigUnit_HierarchyGetPhysicsBodyPointVelocity

class unreal.RigUnit_HierarchyGetPhysicsBodyPointVelocity(physics_body_component_key: RigComponentKey = Ellipsis, position: Vector = Ellipsis, space: PhysicsControlSpace = Ellipsis, velocity: Vector = Ellipsis)

Bases: RigUnit_PhysicsBase

Retrieves the current linear velocity of the body at a point in space.

C++ Source:

  • Plugin: ControlRigPhysics

  • Module: ControlRigPhysics

  • File: RigPhysicsBodyExecution.h

Editor Properties: (see get_editor_property/set_editor_property)

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

  • position (Vector): [Read-Write] The position to calculate the velocity at.

  • space (PhysicsControlSpace): [Read-Write] The space that Position is specified in.

  • velocity (Vector): [Read-Write] The current velocity at Position.

property physics_body_component_key: RigComponentKey

[Read-Write] The Physics Body to be queried

Type:

(RigComponentKey)

property position: Vector

[Read-Write] The position to calculate the velocity at.

Type:

(Vector)

property space: PhysicsControlSpace

[Read-Write] The space that Position is specified in.

Type:

(PhysicsControlSpace)

property velocity: Vector

[Read-Only] The current velocity at Position.

Type:

(Vector)