Contact class
A contact is a pair of shapes whose axis-aligned bounding boxes are overlapping.
Constructors
- Contact()
Properties
- b1Link ↔ ContactLink
-
getter/setter pair
- b2Link ↔ ContactLink
-
getter/setter pair
- body1 ↔ RigidBody?
-
The first rigid body.
getter/setter pair
- body2 ↔ RigidBody?
-
The second rigid body.
getter/setter pair
-
buffer
↔ List<
ImpulseDataBuffer> -
getter/setter pair
- close ↔ bool
-
shapes is very close and touching
getter/setter pair
- constraint ↔ ContactConstraint
-
getter/setter pair
- detector ↔ CollisionDetector?
-
The collision detector between two shapes.
getter/setter pair
- dist ↔ double
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- manifold ↔ ContactManifold
-
getter/setter pair
- next ↔ Contact?
-
The next contact in the world.
getter/setter pair
- persisting ↔ bool
-
Internal
getter/setter pair
-
points
↔ List<
ManifoldPoint> -
getter/setter pair
- prev ↔ Contact?
-
The previous contact in the world.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- s1Link ↔ ContactLink
-
getter/setter pair
- s2Link ↔ ContactLink
-
getter/setter pair
- shape1 ↔ Shape?
-
The first shape.
getter/setter pair
- shape2 ↔ Shape?
-
The second shape.
getter/setter pair
- sleeping ↔ bool
-
Whether both the rigid bodies are sleeping or not.
getter/setter pair
- touching ↔ bool
-
Whether the shapes are touching or not.
getter/setter pair
Methods
-
attach(
Shape shape1, Shape shape2) → void - Attach the contact to the shapes.
-
detach(
) → void -
mixFriction(
dynamic friction1, dynamic friction2) → double -
mixRestitution(
dynamic restitution1, dynamic restitution2) → double -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateManifold(
) → void - Update the contact manifold.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited