JointDef<A extends Body, B extends Body> class
abstract
JointDefs are used to construct Joints.
All Joints are connected between two different Bodyies. One Body may be BodyType.static.
Joints between BodyType.static and/or BodyType.kinematic are allowed, but have no effect and use some processing time.
Don't subclass JointDef. Instead, extend from an already defined JointDef subclass.
Properties
- bodyA ↔ A
-
The first attached body.
getter/setter pair
- bodyB ↔ B
-
The second attached body.
getter/setter pair
- collideConnected ↔ bool
-
Set this flag to true if the attached bodies should collide.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- localAnchorA → Vector2
-
The local anchor point relative to body1's origin.
final
- localAnchorB → Vector2
-
The local anchor point relative to body2's origin.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userData ↔ Object?
-
Use this to attach application specific data to your joints.
getter/setter pair
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