HingeJoint3D class
Lets two bodies turn about one axis: a door, a wheel, a lever.
Constructors
- HingeJoint3D({EntityTarget connectedBody = EntityTarget.none, Vector3? anchor, bool enabled = true, Vector3? axis, bool useLimits = false, double minAngle = -1.5707963267948966, double maxAngle = 1.5707963267948966, double friction = 0.0, MotorState3D motor = MotorState3D.off, double motorTarget = 0.0, double motorMaxTorque = 0.0})
-
A hinge about
axis(this entity's +Y by default).
Properties
- anchor ↔ Vector3
-
Where on this entity the joint holds, in its own space.
getter/setter pairinherited
- angle ↔ double
-
Its angle after the last step (radians). Runtime only.
getter/setter pair
- axis ↔ Vector3
-
The axis it turns about, in this entity's space.
getter/setter pair
- componentType → Type
-
Type identifier for this component
no setterinherited
- connectedBody ↔ EntityTarget
-
The other body's entity; none for the world.
getter/setter pairinherited
- enabled ↔ bool
-
Whether the joint acts.
getter/setter pairinherited
- friction ↔ double
-
Friction torque while no motor drives it (N·m).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- joint ↔ int
-
The physics engine's joint, or 0 while it has none. Runtime only.
getter/setter pairinherited
- kind → JointKind3D
-
Which kind of joint this is.
no setteroverride
- maxAngle ↔ double
-
The limits, radians.
getter/setter pair
- minAngle ↔ double
-
The limits, radians.
getter/setter pair
- motor ↔ MotorState3D
-
Off, a target speed, or a target angle.
getter/setter pair
- motorMaxTorque ↔ double
-
The most torque the motor uses (N·m); 0 for no limit.
getter/setter pair
- motorTarget ↔ double
-
The motor's target: rad/s, or radians.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useLimits ↔ bool
-
Whether it turns only between minAngle and maxAngle.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAttach(
EntityId entityId) → void -
Called when this component is added to an entity.
inherited
-
onDetach(
EntityId entityId) → void -
Called when this component is removed from an entity.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited