ContactPoint class

contact points.

Constructors

ContactPoint(Vector2 pointA, Vector2 pointB, double distance)

Properties

distance double
Penetration distance of the two shapes. Overlapping means it will be negative. This value is calculated as cpvdot(cpvsub(point2, point1), normal) and is ignored by cpArbiterSetContactPointSet().
final
hashCode int
The hash code for this object.
no setterinherited
pointA → Vector2
The position of the contact on the surface of shape A.
final
pointB → Vector2
The position of the contact on the surface of shape B.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Vector2? pointA, Vector2? pointB, double? distance}) ContactPoint
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