- type
- class
- extends
- Constraint
- subclasses
- nape.symbolic.SymbolicConstraint
UserConstraint providing a low-level API for user-defined Constraints.
This API is intended to be powerful enough to model any constraint that Nape can handle, but not so low level as to be completely prohibitive.
For instance, things like soft-constraints are automatically provided by this API.
Working with this API will require mathematical skills. A full manual for this API is provided at: http://napephys.com/help/Constraints.pdf
You may also be interested in the nape-symbolic module that is available on github/haxelib/nape downloads. Which provides a run-time compiled DSL using this API to make prototyping (or creating non-performance critical) user-defined constraints simple without the need for great mathematical skills as well as being much quicker to work with.
This API is intended to be powerful enough to model any constraint that Nape can handle, but not so low level as to be completely prohibitive.
For instance, things like soft-constraints are automatically provided by this API.
Working with this API will require mathematical skills. A full manual for this API is provided at: http://napephys.com/help/Constraints.pdf
You may also be interested in the nape-symbolic module that is available on github/haxelib/nape downloads. Which provides a run-time compiled DSL using this API to make prototyping (or creating non-performance critical) user-defined constraints simple without the need for great mathematical skills as well as being much quicker to work with.
Instance Properties hide inherited show inherited
var active : Bool = true
inherited from nape.constraint.Constraint
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 __bindVec2():nape.geom.Vec2
function __clamp(jAcc:nape.TArray<Float>):Void
function __copy():UserConstraint
function __draw(debug:nape.util.Debug):Void
function __eff_mass(eff:nape.TArray<Float>):Void
function __impulse(imp:nape.TArray<Float>, body:nape.phys.Body, out:nape.geom.Vec3):Void
function __position(err:nape.TArray<Float>):Void
function __registerBody(oldBody:Null<nape.phys.Body>, newBody:Null<nape.phys.Body>):Null<nape.phys.Body>
function __velocity(err:nape.TArray<Float>):Void
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