PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

MaxAngle

UniversalConstraint

float

This property determines the max angle, in degrees, of the UniversalConstraint|UniversalConstraint’s limiting cone. The limiting cone is formed from Constraint/Attachment0|Attachment0 and its primary axis. The default value is 45.0 degrees.

In order for this property to take affect, the constraint’s UniversalConstraint/LimitsEnabled property must be set to true.

For example, the code snippet below sets LimitsEnabled to true and limits the UniversalConstraint/MaxAngle to 10 degrees:

universalConstraint.LimitsEnabled = true
universalConstraint.MaxAngle = 10