LimitMotor class

An information of limit and motor.

Constructors

LimitMotor(Vec3 axis, [bool fixed = false])
An information of limit and motor.

Properties

angle double
The current angle for rotational constraints.
getter/setter pair
axis Vec3
The axis of the constraint.
getter/setter pair
dampingRatio double
The damping ratio of the spring. Set 0 for no damping, 1 for critical damping.
getter/setter pair
fixed bool
getter/setter pair
frequency int
The frequency of the spring. Set 0 to disable.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lowerLimit double
The lower limit. Set lower > upper to disable
getter/setter pair
maxMotorForce double
The maximum motor force or torque. Set 0 to disable.
getter/setter pair
motorSpeed double
The target motor speed.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
upperLimit double
The upper limit. Set lower > upper to disable.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLimit(double lowerLimit, double upperLimit) → void
Set limit data into this constraint.
setMotor(double motorSpeed, double maxMotorForce) → void
Set motor data into this constraint.
setSpring(int frequency, double dampingRatio) → void
Set spring data into this constraint.
toString() String
A string representation of this object.
inherited

Operators

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