Table of Contents

Class SliderConstraintDesc.LimitDesc

Namespace
Stride.Physics.Constraints
Assembly
Stride.Physics.dll

Slider constraint properties regarding limits.

[DataContract]
public class SliderConstraintDesc.LimitDesc
Inheritance
SliderConstraintDesc.LimitDesc

Properties

LowerAngularLimit

Negative limit (-Pi, 0). Left handed rotation when thumb points at positive X axis of the constraint.

[Display(2, null, null)]
[DataMemberRange(-3.141592653589793, 0, 0.0872664675116539, 0.7853981852531433, 3)]
public float LowerAngularLimit { get; set; }

Property Value

float

LowerLinearLimit

Lower linear limit along the constraint axis.

[Display(0, null, null)]
public float LowerLinearLimit { get; set; }

Property Value

float

Remarks

If Lower = Upper, the axis is locked; if Lower > Upper, the axis is free; if Lower < Upper, axis is limited in the range.

UpperAngularLimit

Positive limit (0, Pi). Right handed rotation when thumb points at positive X axis of the constraint.

[Display(3, null, null)]
[DataMemberRange(0, 3.141592653589793, 0.0872664675116539, 0.7853981852531433, 3)]
public float UpperAngularLimit { get; set; }

Property Value

float

UpperLinearLimit

Upper linear limit along the constraint axis.

[Display(1, null, null)]
public float UpperLinearLimit { get; set; }

Property Value

float

Remarks

If Lower = Upper, the axis is locked; if Lower > Upper, the axis is free; if Lower < Upper, axis is limited in the range.