AngleJoint
Declaration
public class tainicom.Aether.Physics2D.Dynamics.Joints.AngleJoint
Maintains a fixed angle between two bodies
Inherits: tainicom.Aether.Physics2D.Dynamics.Joints.Joint
Constructors
AngleJoint
Constructor for AngleJoint
void AngleJoint(Body bodyA, Body bodyB)
Parameters:
| Name | Type | Description |
|---|---|---|
bodyA |
tainicom.Aether.Physics2D.Dynamics.Body |
The first body |
bodyB |
tainicom.Aether.Physics2D.Dynamics.Body |
The second body |
Properties
WorldAnchorA override
Vector2 WorldAnchorA { get set }
WorldAnchorB override
Vector2 WorldAnchorB { get set }
TargetAngle
The desired angle between BodyA and BodyB
float TargetAngle { get set }
BiasFactor
Gets or sets the bias factor. Defaults to 0.2
float BiasFactor { get set }
MaxImpulse
Gets or sets the maximum impulse Defaults to float.MaxValue
float MaxImpulse { get set }
Softness
Gets or sets the softness of the joint Defaults to 0
float Softness { get set }
Methods
GetReactionForce override
Vector2 GetReactionForce(float invDt)
Parameters:
| Name | Type | Description |
|---|---|---|
invDt |
System.Single |
GetReactionTorque override
float GetReactionTorque(float invDt)
Parameters:
| Name | Type | Description |
|---|---|---|
invDt |
System.Single |