Facing class final

Which way it faces, how fast it comes round, and where its eye sits.

Constructors

Facing({double yaw = 0.0, double turnRate = 6.0, double eyeFraction = 0.32})

Properties

eyeFraction ↔ double
Where the eye sits, as a fraction of the body's half-height above its centre. Roughly the chest on anything humanoid, which is what a shot should leave from and what a shot should aim at.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
turnRate ↔ double
Radians a second.
getter/setter pair
yaw ↔ double
Radians about Y. Zero looks along −Z.
getter/setter pair

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