unreal.PhysicsControlData
¶
- class unreal.PhysicsControlData(linear_strength: float = 0.0, linear_damping_ratio: float = 0.0, linear_extra_damping: float = 0.0, max_force: float = 0.0, angular_strength: float = 0.0, angular_damping_ratio: float = 0.0, angular_extra_damping: float = 0.0, max_torque: float = 0.0)¶
Bases:
StructBase
Contains data associated with how physical bodies should be controlled/directed towards their targets. The underlying control is done through damped springs, so the parameters here relate to that.
C++ Source:
Plugin: PhysicsControl
Module: PhysicsControl
File: PhysicsControlData.h
Editor Properties: (see get_editor_property/set_editor_property)
angular_damping_ratio
(float): [Read-Write] The amount of damping associated with the angular strength. A value of 1 Results in critically damped motion where the control drives as quickly as possible to the target without overshooting. Values > 1 result in more damped motion, and values below 1 result in faster, but more “wobbly” motion.angular_extra_damping
(float): [Read-Write] The amount of additional angular damping. This is added to the damping that comes from AngularDampingRatio and can be useful when you want damping even when AngularStrength is zero.angular_strength
(float): [Read-Write] The strength used to drive angular motionlinear_damping_ratio
(float): [Read-Write] The amount of damping associated with the linear strength. A value of 1 Results in critically damped motion where the control drives as quickly as possible to the target without overshooting. Values > 1 result in more damped motion, and values below 1 result in faster, but more “wobbly” motion.linear_extra_damping
(float): [Read-Write] The amount of additional linear damping. This is added to the damping that comes from LinearDampingRatio and can be useful when you want damping even when LinearStrength is zero.linear_strength
(float): [Read-Write] The strength used to drive linear motionmax_force
(float): [Read-Write] The maximum force used to drive the linear motion. Zero indicates no limit.max_torque
(float): [Read-Write] The maximum torque used to drive the angular motion. Zero indicates no limit.
- property angular_damping_ratio: float¶
[Read-Write] The amount of damping associated with the angular strength. A value of 1 Results in critically damped motion where the control drives as quickly as possible to the target without overshooting. Values > 1 result in more damped motion, and values below 1 result in faster, but more “wobbly” motion.
- Type:
(float)
- property angular_extra_damping: float¶
[Read-Write] The amount of additional angular damping. This is added to the damping that comes from AngularDampingRatio and can be useful when you want damping even when AngularStrength is zero.
- Type:
(float)
- property angular_strength: float¶
[Read-Write] The strength used to drive angular motion
- Type:
(float)
- property linear_damping_ratio: float¶
[Read-Write] The amount of damping associated with the linear strength. A value of 1 Results in critically damped motion where the control drives as quickly as possible to the target without overshooting. Values > 1 result in more damped motion, and values below 1 result in faster, but more “wobbly” motion.
- Type:
(float)
- property linear_extra_damping: float¶
[Read-Write] The amount of additional linear damping. This is added to the damping that comes from LinearDampingRatio and can be useful when you want damping even when LinearStrength is zero.
- Type:
(float)
- property linear_strength: float¶
[Read-Write] The strength used to drive linear motion
- Type:
(float)