Class HingeConstraint
public class HingeConstraint : Constraint, IDisposable, IRelative
- Inheritance
-
HingeConstraint
- Implements
- Inherited Members
- Extension Methods
Properties
AngularOnly
Gets or sets a value indicating whether [angular only].
public bool AngularOnly { get; set; }
Property Value
- bool
true
if [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
enableMotor
boolif set to
true
[enable motor].targetVelocity
floatThe target velocity.
maxMotorImpulse
floatThe maximum motor impulse.
EnableMotor(bool)
Enables the motor.
public void EnableMotor(bool enableMotor)
Parameters
enableMotor
boolif 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
axisInA
Vector3The 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
low
floatThe low.
high
floatThe high.
softness
floatThe softness.
biasFactor
floatThe 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
low
floatThe low.
high
floatThe high.
softness
floatThe softness.
biasFactor
floatThe bias factor.
relaxationFactor
floatThe relaxation factor.
SetMotorTarget(Quaternion, float)
Sets the motor target.
public void SetMotorTarget(Quaternion qAinB, float dt)
Parameters
qAinB
QuaternionThe q ain b.
dt
floatThe dt.
SetMotorTarget(float, float)
Sets the motor target.
public void SetMotorTarget(float targetAngle, float dt)