Table of Contents

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

bodyA Body

The first body

bodyB Body

The second body

Fields

_bias

The bias

private float _bias

Field Value

float

_jointError

The joint error

private float _jointError

Field Value

float

_massFactor

The mass factor

private float _massFactor

Field Value

float

_targetAngle

The target angle

private float _targetAngle

Field Value

float

Properties

BiasFactor

Gets or sets the bias factor. Defaults to 0.2

public float BiasFactor { get; set; }

Property Value

float

MaxImpulse

Gets or sets the maximum impulse Defaults to float.MaxValue

public float MaxImpulse { get; set; }

Property Value

float

Softness

Gets or sets the softness of the joint Defaults to 0

public float Softness { get; set; }

Property Value

float

TargetAngle

The desired angle between BodyA and BodyB

public float TargetAngle { get; set; }

Property Value

float

WorldAnchorA

Gets or sets the value of the world anchor a

public override Vector2 WorldAnchorA { get; set; }

Property Value

Vector2

WorldAnchorB

Gets or sets the value of the world anchor b

public override Vector2 WorldAnchorB { get; set; }

Property Value

Vector2

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