SpringConstraint class

A Cone Twist constraint, useful for ragdolls.

Inheritance

Constructors

SpringConstraint.new(Body bodyA, Body bodyB, {double stiffness = 1, double damping = 1})

Properties

axisA ↔ Vector3
The axis direction for the constraint of the body A.
getter/setter pair
axisB ↔ Vector3
The axis direction for the constraint of the body B.
getter/setter pair
bodyA Body
getter/setter pairinherited
bodyB Body
getter/setter pairinherited
collideConnected bool
Set to false if you don't want the bodies to collide when they are connected.
getter/setter pairinherited
damping double
Damping of the spring. A number >= 0.
getter/setter pair
distanceEquation ContactEquation
getter/setter pair
equations List<Equation>
Equations to be solved in this constraint.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id int
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stiffness double
Stiffness of the spring. A number >= 0.
getter/setter pair

Methods

disable() → void
Disables all equations in the constraint.
inherited
enable() → void
Enables all equations in the constraint.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update() → void
Update all the equations with data.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited