DistanceJoint3D class
Keeps two anchors within a distance range: a rope, a chain link, a spring.
Constructors
- DistanceJoint3D({EntityTarget connectedBody = EntityTarget.none, Vector3? anchor, bool enabled = true, Vector3? connectedAnchor, double minDistance = -1.0, double maxDistance = -1.0, double springFrequency = 0.0, double springDamping = 0.0})
-
A joint from
anchortoconnectedAnchor; the distance range is what they are apart when it is made, unlessminDistanceandmaxDistanceare given (0 or more).
Properties
- anchor ↔ Vector3
-
Where on this entity the joint holds, in its own space.
getter/setter pairinherited
- componentType → Type
-
Type identifier for this component
no setterinherited
- connectedAnchor ↔ Vector3
-
Where on the other entity it holds, in that entity's space (in world
space when joined to the world).
getter/setter pair
- connectedBody ↔ EntityTarget
-
The other body's entity; none for the world.
getter/setter pairinherited
- enabled ↔ bool
-
Whether the joint acts.
getter/setter pairinherited
- 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
- maxDistance ↔ double
-
The shortest and longest it allows; below 0 means "as it was made".
getter/setter pair
- minDistance ↔ double
-
The shortest and longest it allows; below 0 means "as it was made".
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- springDamping ↔ double
-
Springiness in Hz (0 = a rigid rope), and damping (1 = critical).
getter/setter pair
- springFrequency ↔ double
-
Springiness in Hz (0 = a rigid rope), and damping (1 = critical).
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