Sweep class

This describes the motion of a body/shape for TOI computation. Shapes are defined with respect to the body origin, which may not coincide with the center of mass. However, to support dynamics we must interpolate the center of mass position.

Constructors

Sweep()

Properties

a double
World angles
read / write
a0 double
World angles
read / write
alpha0 double
Fraction of the current time step in the range 0,1 c0 and a0 are the positions at alpha0.
read / write
c Vector2
Center world positions
final
c0 Vector2
Center world positions
final
localCenter Vector2
Local center of mass position
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

advance(double alpha) → void
Advance the sweep forward, yielding a new initial state. [...]
getTransform(Transform xf, double beta) → void
Get the interpolated transform at a specific time. [...]
normalize() → void
set(Sweep other) Sweep
toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited