- type
- class
- extends
- Constraint
AngleJoint constraining the relative angles of two Bodies.
The equation for this constraint is:
The equation for this constraint is:
jointMin <= ratio * body2.rotation - body1.rotation <= jointMax
Constructor
function
new(body1:Null<nape.phys.Body>, body2:Null<nape.phys.Body>, jointMin:Float, jointMax:Float, ratio:Float = 1)
Construct a new AngleJoint.
Instance Properties hide inherited show inherited
var active : Bool = true
inherited from nape.constraint.Constraint
var body1 : Null<nape.phys.Body>
var body2 : Null<nape.phys.Body>
var breakUnderError : Bool = false
inherited from nape.constraint.Constraint
var breakUnderForce : Bool = false
inherited from nape.constraint.Constraint
readonly var cbTypes : nape.callbacks.CbTypeList = [CbType.ANY_CONSTRAINT]
inherited from nape.constraint.Constraint
var compound : Null<nape.phys.Compound> = null
inherited from nape.constraint.Constraint
var damping : Float = 1
inherited from nape.constraint.Constraint
var debugDraw : Bool = true
inherited from nape.constraint.Constraint
var frequency : Float = 10
inherited from nape.constraint.Constraint
var ignore : Bool = false
inherited from nape.constraint.Constraint
readonly var isSleeping : Bool
inherited from nape.constraint.Constraint
var maxError : Float = infinity
inherited from nape.constraint.Constraint
var maxForce : Float = infinity
inherited from nape.constraint.Constraint
var removeOnBreak : Bool = true
inherited from nape.constraint.Constraint
var space : Null<nape.space.Space> = null
inherited from nape.constraint.Constraint
var stiff : Bool = true
inherited from nape.constraint.Constraint
readonly var userData : Dynamic<Dynamic> = {}
inherited from nape.constraint.Constraint
Instance Methods hide inherited show inherited
function bodyImpulse(body:nape.phys.Body):nape.geom.Vec3
overrides nape.constraint.Constraint
copy():Constraint
inherited from nape.constraint.Constraint
function impulse():nape.geom.MatMN
overrides nape.constraint.Constraint
function visitBodies(lambda:nape.phys.Body -> Void):Void
overrides nape.constraint.Constraint