HingeConstraint class

Hinge constraint. Think of it as a door hinge. It tries to keep the door in the correct place and with the correct orientation.

Inheritance

Constructors

HingeConstraint(Body bodyA, Body bodyB, {Vec3? pivotA, Vec3? pivotB, Vec3? axisA, Vec3? axisB, bool? collideConnected, double maxForce = 1e6})

Properties

axisA Vec3
Rotation axis, defined locally in bodyA.
getter/setter pair
axisB Vec3
Rotation axis, defined locally in bodyB.
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
equations List<Equation>
Equations to be solved in this constraint.
getter/setter pairinherited
equationX ContactEquation
getter/setter pairinherited
equationY ContactEquation
getter/setter pairinherited
equationZ ContactEquation
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id int
getter/setter pairinherited
motorEquation RotationalMotorEquation
getter/setter pair
motorTargetVelocity double?
getter/setter pair
pivotA Vec3
Pivot, defined locally in bodyA.
getter/setter pairinherited
pivotB Vec3
Pivot, defined locally in bodyB.
getter/setter pairinherited
rotationalEquation1 RotationalEquation
getter/setter pair
rotationalEquation2 RotationalEquation
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disable() → void
Disables all equations in the constraint.
inherited
disableMotor() → void
disableMotor
enable() → void
Enables all equations in the constraint.
inherited
enableMotor() → void
enableMotor
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMotorMaxForce(double maxForce) → void
setMotorMaxForce
setMotorSpeed(double speed) → void
setMotorSpeed
toString() String
A string representation of this object.
inherited
update() → void
update
override

Operators

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