FixedJoint2D class

Holds two bodies rigidly together (Box2D calls it a weld).

Inheritance

Constructors

FixedJoint2D({EntityTarget connectedBody = EntityTarget.none, Offset anchor = Offset.zero, Offset connectedAnchor = Offset.zero, bool collideConnected = false, bool enabled = true})
A fixed joint.

Properties

anchor ↔ Offset
Where on this entity the joint holds, in its own space.
getter/setter pairinherited
collideConnected ↔ bool
Whether the two bodies still collide with each other.
getter/setter pairinherited
componentType → Type
Type identifier for this component
no setterinherited
connectedAnchor ↔ Offset
Where on the other entity it holds, in that entity's space.
getter/setter pairinherited
connectedBody ↔ EntityTarget
The other body's entity — by name or by tag.
getter/setter pairinherited
enabled ↔ bool
Whether the joint acts.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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