Steering

public class Steering

Class Steering. Provides steering functionality for the Hytale server.

java.lang.Object > Steering

Field Summary

maxDistance

private double maxDistance

Field maxDistance.

maxDistanceComponentSelector

private Vector3d maxDistanceComponentSelector

Field maxDistanceComponentSelector.

hasTranslation

private boolean hasTranslation

Field hasTranslation.

yaw

private float yaw

Field yaw.

hasYaw

private boolean hasYaw

Field hasYaw.

pitch

private float pitch

Field pitch.

hasPitch

private boolean hasPitch

Field hasPitch.

roll

private float roll

Field roll.

hasRoll

private boolean hasRoll

Field hasRoll.

relativeTurnSpeed

private double relativeTurnSpeed

Field relativeTurnSpeed.

hasRelativeTurnSpeed

private boolean hasRelativeTurnSpeed

Field hasRelativeTurnSpeed.

steering

final Steering steering

Field steering.

temp

final long temp

Field temp.

Method Detail

Steering

public public Steering ()

Method Steering.

clear

public Steering clear ()

Method clear.

assign

public Steering assign (@Nonnull final Steering other)

Method assign.

Parameters:
@Nonnull final Steering other

equals

public boolean equals (@Nullable final Object o)

Method equals.

Parameters:
@Nullable final Object o

hashCode

public int hashCode ()

Method hashCode.

clearTranslation

public Steering clearTranslation ()

Method clearTranslation.

clearRotation

public Steering clearRotation ()

Method clearRotation.

getTranslation

public Vector3d getTranslation ()

Method getTranslation.

getX

public double getX ()

Method getX.

setX

public Steering setX (final double value)

Method setX.

Parameters:
final double value

getY

public double getY ()

Method getY.

setY

public Steering setY (final double value)

Method setY.

Parameters:
final double value

getZ

public double getZ ()

Method getZ.

setZ

public Steering setZ (final double value)

Method setZ.

Parameters:
final double value

setTranslation

public Steering setTranslation (@Nonnull final Vector3d translation)

Method setTranslation.

Parameters:
@Nonnull final Vector3d translation

setTranslationRelativeSpeed

public Steering setTranslationRelativeSpeed (final double relativeSpeed)

Method setTranslationRelativeSpeed.

Parameters:
final double relativeSpeed

scaleTranslation

public Steering scaleTranslation (final double speedFactor)

Method scaleTranslation.

Parameters:
final double speedFactor

ensureMinTranslation

public Steering ensureMinTranslation (final double relativeSpeed)

Method ensureMinTranslation.

Parameters:
final double relativeSpeed

getMaxDistance

public double getMaxDistance ()

Method getMaxDistance.

setMaxDistance

public void setMaxDistance (final double maxDistance)

Method setMaxDistance.

Parameters:
final double maxDistance

clearMaxDistance

public void clearMaxDistance ()

Method clearMaxDistance.

getMaxDistanceComponentSelector

public Vector3d getMaxDistanceComponentSelector ()

Method getMaxDistanceComponentSelector.

setMaxDistanceComponentSelector

public void setMaxDistanceComponentSelector (final Vector3d maxDistanceComponentSelector)

Method setMaxDistanceComponentSelector.

Parameters:
final Vector3d maxDistanceComponentSelector

clearMaxDistanceComponentSelector

public void clearMaxDistanceComponentSelector ()

Method clearMaxDistanceComponentSelector.

getYaw

public float getYaw ()

Method getYaw.

setYaw

public Steering setYaw (final float angle)

Method setYaw.

Parameters:
final float angle

clearYaw

public void clearYaw ()

Method clearYaw.

getPitch

public float getPitch ()

Method getPitch.

setPitch

public Steering setPitch (final float angle)

Method setPitch.

Parameters:
final float angle

clearPitch

public void clearPitch ()

Method clearPitch.

getRoll

public float getRoll ()

Method getRoll.

setRoll

public Steering setRoll (final float angle)

Method setRoll.

Parameters:
final float angle

clearRoll

public void clearRoll ()

Method clearRoll.

setRelativeTurnSpeed

public Steering setRelativeTurnSpeed (final double relativeTurnSpeed)

Method setRelativeTurnSpeed.

Parameters:
final double relativeTurnSpeed

hasTranslation

public boolean hasTranslation ()

Method hasTranslation.

hasYaw

public boolean hasYaw ()

Method hasYaw.

hasPitch

public boolean hasPitch ()

Method hasPitch.

hasRoll

public boolean hasRoll ()

Method hasRoll.

getSpeed

public double getSpeed ()

Method getSpeed.

getRelativeTurnSpeed

public double getRelativeTurnSpeed ()

Method getRelativeTurnSpeed.

toString

public String toString ()

Method toString.