unreal.ConstraintBaseParams

class unreal.ConstraintBaseParams

Bases: StructBase

Constraint Base Params

C++ Source:

  • Module: Engine

  • File: ConstraintTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • contact_distance (float): [Read-Write] Contact Distance: 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): [Read-Write] Damping: Damping of the soft constraint. Only used when Soft Constraint is on.

  • restitution (float): [Read-Write] Restitution: 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): [Read-Write] Soft Constraint: Whether we want to use a soft constraint (spring).

  • stiffness (float): [Read-Write] Stiffness: Stiffness of the soft constraint. Only used when Soft Constraint is on.