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
getter/setter pair
a0 double
World angles
getter/setter pair
alpha0 double
Fraction of the current time step in the range 0,1 c0 and a0 are the positions at alpha0.
getter/setter pair
c Vector2
final
c0 Vector2
Center world positions
final
hashCode int
The hash code for this object.
no setterinherited
localCenter Vector2
Local center of mass position
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFrom(Sweep other) → void
toString() String
A string representation of this object.
override

Operators

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