Class HingeConstraintDesc.LimitDesc
- Namespace
- Stride.Physics.Constraints
- Assembly
- Stride.Physics.dll
Hinge constraint properties regarding limits.
[DataContract]
public class HingeConstraintDesc.LimitDesc
- Inheritance
-
HingeConstraintDesc.LimitDesc
Properties
LowerLimit
Negative limit (-Pi, 0). Left handed rotation when thumb points at positive X axis of the constraint.
[Display(1, null, null)]
[DataMemberRange(-3.141592653589793, 0, 0.0872664675116539, 0.7853981852531433, 3)]
public float LowerLimit { get; set; }
Property Value
SetLimit
If true there will be a limit set on the constraint.
[Display(0, null, null)]
public bool SetLimit { get; set; }
Property Value
Remarks
The limits are angles determining the area of freedom for the constraint, calculated from 0 to ±PI, with 0 being at the positive Z axis of the constraint (with X being the hinge axis).
UpperLimit
Positive limit (0, Pi). Right handed rotation when thumb points at positive X axis of the constraint.
[Display(2, null, null)]
[DataMemberRange(0, 3.141592653589793, 0.0872664675116539, 0.7853981852531433, 3)]
public float UpperLimit { get; set; }