unreal.PhysicsControlMultiplier

class unreal.PhysicsControlMultiplier(linear_strength_multiplier: Vector = Ellipsis, linear_extra_damping_multiplier: Vector = Ellipsis, max_force_multiplier: Vector = Ellipsis, angular_strength_multiplier: float = 0.0, angular_extra_damping_multiplier: float = 0.0, max_torque_multiplier: float = 0.0)

Bases: StructBase

These parameters allow modification of the parameters in FPhysicsControlData for two reasons: 1. They allow per-axis settings for the linear components (e.g. so you can drive an object

horizontally but still let it fall under gravity)

  1. They make it easy to create the controls with “default” strength/damping (e.g. taken from the physics asset) in FPhysicsControlData, and then the strength/damping etc can be scaled every tick (typically between 0 and 1, though that is up to the user).

C++ Source:

  • Plugin: PhysicsControl

  • Module: PhysicsControl

  • File: PhysicsControlData.h

Editor Properties: (see get_editor_property/set_editor_property)

  • angular_extra_damping_multiplier (float): [Read-Write] Multiplier on the angular extra damping.

  • angular_strength_multiplier (float): [Read-Write] Multiplier on the angular strength.

  • linear_extra_damping_multiplier (Vector): [Read-Write] Per-direction multiplier on the linear extra damping.

  • linear_strength_multiplier (Vector): [Read-Write] Per-direction multiplier on the linear strength.

  • max_force_multiplier (Vector): [Read-Write] Per-direction multiplier on the maximum force that can be applied. Note that zero means zero force.

  • max_torque_multiplier (float): [Read-Write] Per-direction multiplier on the maximum torque that can be applied. Note that zero means zero torque.

property angular_extra_damping_multiplier: float

[Read-Write] Multiplier on the angular extra damping.

Type:

(float)

property angular_strength_multiplier: float

[Read-Write] Multiplier on the angular strength.

Type:

(float)

property linear_extra_damping_multiplier: Vector

[Read-Write] Per-direction multiplier on the linear extra damping.

Type:

(Vector)

property linear_strength_multiplier: Vector

[Read-Write] Per-direction multiplier on the linear strength.

Type:

(Vector)

property max_force_multiplier: Vector

[Read-Write] Per-direction multiplier on the maximum force that can be applied. Note that zero means zero force.

Type:

(Vector)

property max_torque_multiplier: float

[Read-Write] Per-direction multiplier on the maximum torque that can be applied. Note that zero means zero torque.

Type:

(float)