JointSettings3D class final

How a joint is made. Points and axes are in world space, as the bodies are when it is made.

Constructors

JointSettings3D({required JointKind3D kind, Vector3? pointA, Vector3? pointB, Vector3? axis, Vector3? normal, bool hasLimits = false, double limitMin = 0, double limitMax = 0, double springFrequency = 0, double springDamping = 0, double maxFriction = 0, MotorState3D motorState = MotorState3D.off, double motorTarget = 0, double motorMaxForce = 0, List<SixDofAxisMode3D>? sixDofModes, List<double>? sixDofMin, List<double>? sixDofMax})
A joint of kind; see each field for which kinds read it.

Properties

axis → Vector3
Hinge: the axis it turns about. Slider: the axis it slides along. Six-DOF: its X axis.
final
hashCode → int
The hash code for this object.
no setterinherited
hasLimits → bool
Whether a hinge, slider or distance joint is limited to limitMin..limitMax (radians for a hinge, metres otherwise).
final
kind → JointKind3D
Fixed, point, hinge, slider, distance or six-DOF.
final
limitMax → double
The limits; see hasLimits.
final
limitMin → double
The limits; see hasLimits.
final
maxFriction → double
Hinge and slider: friction torque or force while no motor drives it.
final
motorMaxForce → double
The most torque or force the motor may use; 0 for no limit.
final
motorState → MotorState3D
Hinge and slider motor.
final
motorTarget → double
The motor's target speed or position.
final
normal → Vector3
Perpendicular to axis: a hinge's zero angle, a six-DOF joint's Y.
final
pointA → Vector3
Where it holds the first body.
final
pointB → Vector3
Where it holds the second; the same as pointA unless given (a distance joint's other end).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sixDofMax → List<double>
Six-DOF limits for limited axes, in the same order.
final
sixDofMin → List<double>
Six-DOF limits for limited axes, in the same order.
final
sixDofModes → List<SixDofAxisMode3D>
Six-DOF: per axis — translation X, Y, Z, then rotation X, Y, Z.
final
springDamping → double
A soft limit — a distance joint's spring — in Hz (0 = rigid), and its damping ratio (1 = critical).
final
springFrequency → double
A soft limit — a distance joint's spring — in Hz (0 = rigid), and its damping ratio (1 = critical).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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