CollisionUtil class

Constructors

CollisionUtil()

Properties

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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

findClosesPointOnPolygon(Vector2 circleCenter, List<Vector2> vertices) int
getNormalAndDepth(List<Vector2> verticesA, List<Vector2> verticesB, {bool insverted = false}) → ({double depth, Vector2 normal})
getPolygonVertices(ShapeHitbox shape) List<Vector2>
projectCircle(Vector2 center, double radius, Vector2 axis) → ({double max, double min})
projectVertices(List<Vector2> vertices, Vector2 axis) → ({double max, double min})