Class HingeConstraint
public class HingeConstraint : Constraint, IDisposable, IRelative- Inheritance
- 
      objectHingeConstraint
- Implements
- Inherited Members
- Extension Methods
Properties
AngularOnly
Gets or sets a value indicating whether [angular only].
public bool AngularOnly { get; set; }Property Value
- bool
- trueif [angular only]; otherwise,- false.
HingeAngle
Gets the hinge angle.
public float HingeAngle { get; }Property Value
- float
- The hinge angle. 
LimitSign
Gets the limit sign.
public float LimitSign { get; }Property Value
- float
- The limit sign. 
LowerLimit
Gets the lower limit.
public float LowerLimit { get; }Property Value
- float
- The lower limit. 
MaxMotorImpulse
Gets or sets the maximum motor impulse.
public float MaxMotorImpulse { get; set; }Property Value
- float
- The maximum motor impulse. 
MotorTargetVelocity
Gets the motor target velocity.
public float MotorTargetVelocity { get; }Property Value
- float
- The motor target velocity. 
SolveLimit
Gets the solve limit.
public int SolveLimit { get; }Property Value
- int
- The solve limit. 
UpperLimit
Gets the upper limit.
public float UpperLimit { get; }Property Value
- float
- The upper limit. 
Methods
EnableAngularMotor(bool, float, float)
Enables the angular motor.
public void EnableAngularMotor(bool enableMotor, float targetVelocity, float maxMotorImpulse)Parameters
- enableMotorbool
- if set to - true[enable motor].
- targetVelocityfloat
- The target velocity. 
- maxMotorImpulsefloat
- The maximum motor impulse. 
EnableMotor(bool)
Enables the motor.
public void EnableMotor(bool enableMotor)Parameters
- enableMotorbool
- if set to - true[enable motor].
SetAxis(Vector3)
Sets the hinge axis for body A (this works mostly for body-world constraints).
public void SetAxis(Vector3 axisInA)Parameters
- axisInAVector3
- The hinge axis. 
SetFrames(Matrix, Matrix)
Sets the frames.
public void SetFrames(Matrix frameA, Matrix frameB)Parameters
SetLimit(float, float)
Sets the limit.
public void SetLimit(float low, float high)Parameters
SetLimit(float, float, float)
Sets the limit.
public void SetLimit(float low, float high, float softness)Parameters
SetLimit(float, float, float, float)
Sets the limit.
public void SetLimit(float low, float high, float softness, float biasFactor)Parameters
- lowfloat
- The low. 
- highfloat
- The high. 
- softnessfloat
- The softness. 
- biasFactorfloat
- The bias factor. 
SetLimit(float, float, float, float, float)
Sets the limit.
public void SetLimit(float low, float high, float softness, float biasFactor, float relaxationFactor)Parameters
- lowfloat
- The low. 
- highfloat
- The high. 
- softnessfloat
- The softness. 
- biasFactorfloat
- The bias factor. 
- relaxationFactorfloat
- The relaxation factor. 
SetMotorTarget(Quaternion, float)
Sets the motor target.
public void SetMotorTarget(Quaternion qAinB, float dt)Parameters
- qAinBQuaternion
- The q ain b. 
- dtfloat
- The dt. 
SetMotorTarget(float, float)
Sets the motor target.
public void SetMotorTarget(float targetAngle, float dt)