Class Steering
java.lang.Object
com.hypixel.hytale.server.npc.movement.Steering
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclear()voidvoidvoidvoidvoidclearYaw()ensureMinTranslation(double relativeSpeed) booleandoublefloatgetPitch()doublefloatgetRoll()doublegetSpeed()doublegetX()doublegetY()floatgetYaw()doublegetZ()inthashCode()booleanhasPitch()booleanhasRoll()booleanbooleanhasYaw()scaleTranslation(double speedFactor) voidsetMaxDistance(double maxDistance) voidsetMaxDistanceComponentSelector(Vector3d maxDistanceComponentSelector) setPitch(float angle) setRelativeTurnSpeed(double relativeTurnSpeed) setRoll(float angle) setTranslation(double x, double y, double z) setTranslation(Vector3d translation) setTranslationRelativeSpeed(double relativeSpeed) setX(double value) setY(double value) setYaw(float angle) setZ(double value) toString()
-
Field Details
-
NULL
-
translation
-
maxDistance
private double maxDistance -
maxDistanceComponentSelector
-
hasTranslation
private boolean hasTranslation -
yaw
private float yaw -
hasYaw
private boolean hasYaw -
pitch
private float pitch -
hasPitch
private boolean hasPitch -
roll
private float roll -
hasRoll
private boolean hasRoll -
relativeTurnSpeed
private double relativeTurnSpeed -
hasRelativeTurnSpeed
private boolean hasRelativeTurnSpeed
-
-
Constructor Details
-
Steering
public Steering()
-
-
Method Details
-
clear
-
assign
-
equals
-
hashCode
public int hashCode() -
clearTranslation
-
clearRotation
-
getTranslation
-
getX
public double getX() -
setX
-
getY
public double getY() -
setY
-
getZ
public double getZ() -
setZ
-
setTranslation
-
setTranslation
-
setTranslationRelativeSpeed
-
scaleTranslation
-
ensureMinTranslation
-
getMaxDistance
public double getMaxDistance() -
setMaxDistance
public void setMaxDistance(double maxDistance) -
clearMaxDistance
public void clearMaxDistance() -
getMaxDistanceComponentSelector
-
setMaxDistanceComponentSelector
-
clearMaxDistanceComponentSelector
public void clearMaxDistanceComponentSelector() -
getYaw
public float getYaw() -
setYaw
-
clearYaw
public void clearYaw() -
getPitch
public float getPitch() -
setPitch
-
clearPitch
public void clearPitch() -
getRoll
public float getRoll() -
setRoll
-
clearRoll
public void clearRoll() -
setRelativeTurnSpeed
-
hasTranslation
public boolean hasTranslation() -
hasYaw
public boolean hasYaw() -
hasPitch
public boolean hasPitch() -
hasRoll
public boolean hasRoll() -
getSpeed
public double getSpeed() -
getRelativeTurnSpeed
public double getRelativeTurnSpeed() -
toString
-