Class AngleJoint
- Namespace
- Alis.Core.Physic.Dynamics.Joints
- Assembly
- Alis.dll
Maintains a fixed angle between two bodies
public class AngleJoint : Joint
Inheritance
Inherited Members
Constructors
AngleJoint()
Initializes a new instance of the Alis.Core.Physic.Dynamics.Joints.AngleJoint class
internal AngleJoint()
AngleJoint(Body, Body)
Constructor for AngleJoint
public AngleJoint(Body bodyA, Body bodyB)
Parameters
Fields
_bias
The bias
private float _bias
Field Value
_jointError
The joint error
private float _jointError
Field Value
_massFactor
The mass factor
private float _massFactor
Field Value
_targetAngle
The target angle
private float _targetAngle
Field Value
Properties
BiasFactor
Gets or sets the bias factor. Defaults to 0.2
public float BiasFactor { get; set; }
Property Value
MaxImpulse
Gets or sets the maximum impulse Defaults to float.MaxValue
public float MaxImpulse { get; set; }
Property Value
Softness
Gets or sets the softness of the joint Defaults to 0
public float Softness { get; set; }
Property Value
TargetAngle
The desired angle between BodyA and BodyB
public float TargetAngle { get; set; }
Property Value
WorldAnchorA
Gets or sets the value of the world anchor a
public override Vector2 WorldAnchorA { get; set; }
Property Value
WorldAnchorB
Gets or sets the value of the world anchor b
public override Vector2 WorldAnchorB { get; set; }
Property Value
Methods
GetReactionForce(float)
Gets the reaction force using the specified inv dt
public override Vector2 GetReactionForce(float invDt)
Parameters
invDt
float-
The inv dt
Returns
- Vector2
-
The vector
GetReactionTorque(float)
Gets the reaction torque using the specified inv dt
public override float GetReactionTorque(float invDt)
Parameters
invDt
float-
The inv dt
Returns
- float
-
The float
InitVelocityConstraints(ref SolverData)
Inits the velocity constraints using the specified data
internal override void InitVelocityConstraints(ref SolverData data)
Parameters
data
SolverData-
The data
SolvePositionConstraints(ref SolverData)
Describes whether this instance solve position constraints
internal override bool SolvePositionConstraints(ref SolverData data)
Parameters
data
SolverData-
The data
Returns
- bool
-
The bool
SolveVelocityConstraints(ref SolverData)
Solves the velocity constraints using the specified data
internal override void SolveVelocityConstraints(ref SolverData data)
Parameters
data
SolverData-
The data