TetraTetraCollisionDetector class

Class for checking collisions between 2 tetras, a shape that is made with 4 vertices and 4 faces arranged in triangles. With this algorigthm, soft body physics are possible and easier to implement.

Inheritance

Properties

flip bool
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

detectCollision(Shape shape1, Shape shape2, ContactManifold manifold) → void
Detect collision of the shapes provided
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pt(dynamic x, dynamic y) → Vector3
point from x and y
toString() String
A string representation of this object.
inherited
tricheck(Vector3 p, Vector3 p0, Vector3 p1, Vector3 p2) bool
Check the triangle for intersections

Operators

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