unreal.PhysicsControlTarget

class unreal.PhysicsControlTarget(target_position: Vector = Ellipsis, target_velocity: Vector = Ellipsis, target_orientation: Rotator = Ellipsis, target_angular_velocity: Vector = Ellipsis, apply_control_point_to_target: bool = False)

Bases: StructBase

Defines a target position and orientation, and also the target velocity and angular velocity. In many cases the velocities will be calculated automatically (e.g. when setting the target position, the component will optionally calculate an implied velocity. However, the user can also specify a target velocity directly. Note that the velocity influences the control through the damping parameters in FPhysicsControlData

C++ Source:

  • Plugin: PhysicsControl

  • Module: PhysicsControl

  • File: PhysicsControlData.h

Editor Properties: (see get_editor_property/set_editor_property)

  • apply_control_point_to_target (bool): [Read-Write] Whether to use the ControlPoint as an offset for the target transform, as well as the physical body. If true then the target TM is treated as a target transform for the actual object, though the control is still applied through the control point (which is at the center of mass by default). If false then it is treated as a target transform for the control point on the object.

  • target_angular_velocity (Vector): [Read-Write] The target angular velocity (revolutions per second) of the child body, relative to the parent body

  • target_orientation (Rotator): [Read-Write] The target orientation of the child body, relative to the parent body

  • target_position (Vector): [Read-Write] The target position of the child body, relative to the parent body

  • target_velocity (Vector): [Read-Write] The target velocity of the child body, relative to the parent body

property apply_control_point_to_target: bool

[Read-Write] Whether to use the ControlPoint as an offset for the target transform, as well as the physical body. If true then the target TM is treated as a target transform for the actual object, though the control is still applied through the control point (which is at the center of mass by default). If false then it is treated as a target transform for the control point on the object.

Type:

(bool)

property target_angular_velocity: Vector

[Read-Write] The target angular velocity (revolutions per second) of the child body, relative to the parent body

Type:

(Vector)

property target_orientation: Rotator

[Read-Write] The target orientation of the child body, relative to the parent body

Type:

(Rotator)

property target_position: Vector

[Read-Write] The target position of the child body, relative to the parent body

Type:

(Vector)

property target_velocity: Vector

[Read-Write] The target velocity of the child body, relative to the parent body

Type:

(Vector)