ArrayCollisionMatrix class
Collision "matrix". It's actually a triangular-shaped array of whether two bodies are touching this step, for reference next step
Constructors
-
ArrayCollisionMatrix([List<
double> ? matrix])
Properties
Methods
-
get(
Body bi, Body bj) → double - Get an element
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Sets all elements to zero
-
set(
Body bi, Body bj, bool value) → void - Set an element
-
setNumObjects(
int n) → void - Sets the max number of objects
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited