Struct JointTranslationLimit
Linear Translation limit for a joint.
Namespace: Motphys.Rigidbody
Assembly: solution.dll
Syntax
[Serializable]
public struct JointTranslationLimit
Constructors
JointTranslationLimit(Single, Single)
Create a translation limit with the given low and high bounds.
Declaration
public JointTranslationLimit(float low, float high)
Parameters
Type | Name | Description |
---|---|---|
System.Single | low | |
System.Single | high |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if the low bound is greater than the high bound. |
Properties
high
Declaration
public float high { get; }
Property Value
Type | Description |
---|---|
System.Single | The high bound of the limit in meters. |
low
Declaration
public float low { get; }
Property Value
Type | Description |
---|---|
System.Single | The low bound of the limit in meters. |
Methods
Validate()
Clamp the low and high bounds to valid values.
Declaration
public void Validate()