TravelOrientation

public final class TravelOrientation extends Record

How a model turns with its travel on top of facing its heading. Walkers stay level, but flying and swimming creatures don't: a jellyfish leads with its bell and dives upside down, a bird pitches into climbs and dives and banks into turns. The tilt grows with speed and eases back upright once the model stops.

Parameters

style

what leads the travel

startSpeed

blocks per second below which the model stays upright

fullSpeed

blocks per second at which it lines up fully with its travel

maxTilt

the most it tilts, in degrees; 180 lets a top-first model turn upside down to dive

turnSpeed

degrees per second its tilt can change

Constructors

Link copied to clipboard
public void TravelOrientation(TravelOrientation.Style style, double startSpeed, double fullSpeed, double maxTilt, double turnSpeed)

Types

Link copied to clipboard
public enum Style

Properties

Link copied to clipboard
public final static TravelOrientation UPRIGHT
Faces its heading and nothing more, as every model did before travel orientation existed.

Inherited functions

Link copied to clipboard
public abstract boolean equals(Object p)
Link copied to clipboard
public abstract int hashCode()
Link copied to clipboard
public abstract String toString()