SliderJoint3D class

Lets two bodies slide along one axis: a drawer, a piston, a lift.

Inheritance

Constructors

SliderJoint3D({EntityTarget connectedBody = EntityTarget.none, Vector3? anchor, bool enabled = true, Vector3? axis, bool useLimits = false, double minPosition = -1.0, double maxPosition = 1.0, double friction = 0.0, MotorState3D motor = MotorState3D.off, double motorTarget = 0.0, double motorMaxForce = 0.0})
A slider along axis (this entity's +X by default).

Properties

anchor ↔ Vector3
Where on this entity the joint holds, in its own space.
getter/setter pairinherited
axis ↔ Vector3
The axis it slides along, 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 force while no motor drives it (N).
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
maxPosition ↔ double
The limits, metres.
getter/setter pair
minPosition ↔ double
The limits, metres.
getter/setter pair
motor ↔ MotorState3D
Off, a target speed, or a target position.
getter/setter pair
motorMaxForce ↔ double
The most force the motor uses (N); 0 for no limit.
getter/setter pair
motorTarget ↔ double
The motor's target: m/s, or metres.
getter/setter pair
position ↔ double
Its position after the last step (metres). Runtime only.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
useLimits ↔ bool
Whether it slides only between minPosition and maxPosition.
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