unreal.LinearConstraint
¶

class
unreal.
LinearConstraint
¶ Bases:
unreal.ConstraintBaseParams
Distance constraint
C++ Source:
 Module: Engine
 File: ConstraintTypes.h
Editor Properties: (see get_editor_property/set_editor_property)
contact_distance
(float): [ReadWrite] Determines how close to the limit we have to get before turning the joint on. Larger value will be more expensive, but will do a better job not violating constraints. A smaller value will be more efficient, but easier to violate.damping
(float): [ReadWrite] Damping of the soft constraint. Only used when Soft Constraint is on.limit
(float): [ReadWrite] The distance allowed between between the two joint reference frames. Distance applies on all axes enabled (one axis means line, two axes implies circle, three axes implies sphere)restitution
(float): [ReadWrite] Controls the amount of bounce when the constraint is violated. A restitution value of 1 will bounce back with the same velocity the limit was hit. A value of 0 will stop dead.soft_constraint
(bool): [ReadWrite] Whether we want to use a soft constraint (spring).stiffness
(float): [ReadWrite] Stiffness of the soft constraint. Only used when Soft Constraint is on.x_motion
(LinearConstraintMotion): [ReadWrite] Indicates the linear constraint applied along the Xaxis. Free implies no constraint at all. Locked implies no movement along X is allowed. Limited implies the distance in the joint along all active axes must be less than the Distance provided.y_motion
(LinearConstraintMotion): [ReadWrite] Indicates the linear constraint applied along the Yaxis. Free implies no constraint at all. Locked implies no movement along Y is allowed. Limited implies the distance in the joint along all active axes must be less than the Distance provided.z_motion
(LinearConstraintMotion): [ReadWrite] Indicates the linear constraint applied along theZXaxis. Free implies no constraint at all. Locked implies no movement along Z is allowed. Limited implies the distance in the joint along all active axes must be less than the Distance provided.