Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- clear()
- assign(Steering)
- equals(Object)
- hashCode()
- clearTranslation()
- clearRotation()
- getTranslation()
- getX()
- setX(double)
- getY()
- setY(double)
- getZ()
- setZ(double)
- setTranslation(Vector3d)
- setTranslation(double, double, double)
- setTranslationRelativeSpeed(double)
- scaleTranslation(double)
- ensureMinTranslation(double)
- getMaxDistance()
- setMaxDistance(double)
- clearMaxDistance()
- getMaxDistanceComponentSelector()
- setMaxDistanceComponentSelector(Vector3d)
- clearMaxDistanceComponentSelector()
- getYaw()
- setYaw(float)
- clearYaw()
- getPitch()
- setPitch(float)
- clearPitch()
- getRoll()
- setRoll(float)
- clearRoll()
- setRelativeTurnSpeed(double)
- hasTranslation()
- getDirectionHint()
- hasDirectionHint()
- setDirectionHint(Vector3d, Rotation3f, boolean)
- setDirectionHint(Rotation3f)
- setDirectionHint(Rotation3f, boolean)
- hasYaw()
- hasYawOrDirection()
- getYawOrDirection()
- hasPitch()
- hasPitchOrDirection()
- getPitchOrDirection()
- hasRoll()
- hasRollOrDirection()
- getRollOrDirection()
- getSpeed()
- getRelativeTurnSpeed()
- toString()
Class Steering
java.lang.Object
com.hypixel.hytale.server.npc.movement.Steering
The steering class contains a desired direction and rotation. It is normally computed by a Motion subclass instance
and used in a MotionController subclass to determine the movment of an NPC.
The translation part is interpreted as directional vector with maximum unit length. A length of 1 represents 100%
of maximum speed.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclear()voidvoidvoidvoidvoidclearYaw()ensureMinTranslation(double relativeSpeed) booleandoubleorg.joml.Vector3dfloatgetPitch()floatdoublefloatgetRoll()floatdoublegetSpeed()org.joml.Vector3ddoublegetX()doublegetY()floatgetYaw()floatdoublegetZ()booleaninthashCode()booleanhasPitch()booleanbooleanhasRoll()booleanbooleanbooleanhasYaw()booleanscaleTranslation(double speedFactor) setDirectionHint(Rotation3f rotation) setDirectionHint(Rotation3f rotation, boolean forceOverwrite) setDirectionHint(org.joml.Vector3d direction, Rotation3f rotation, boolean forceOverwrite) voidsetMaxDistance(double maxDistance) voidsetMaxDistanceComponentSelector(org.joml.Vector3d maxDistanceComponentSelector) setPitch(float angle) setRelativeTurnSpeed(double relativeTurnSpeed) setRoll(float angle) setTranslation(double x, double y, double z) setTranslation(org.joml.Vector3d translation) setTranslationRelativeSpeed(double relativeSpeed) setX(double value) setY(double value) setYaw(float angle) setZ(double value) toString()
-
Field Details
-
DIRECTION_VECTOR_MIN_LENGTH_SQUARED
public static final double DIRECTION_VECTOR_MIN_LENGTH_SQUARED- See Also:
-
NULL
-
-
Constructor Details
-
Steering
public Steering()
-
-
Method Details
-
clear
-
assign
-
equals
-
hashCode
-
clearTranslation
-
clearRotation
-
getTranslation
@Nonnull public org.joml.Vector3d 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
public org.joml.Vector3d getMaxDistanceComponentSelector() -
setMaxDistanceComponentSelector
public void setMaxDistanceComponentSelector(org.joml.Vector3d maxDistanceComponentSelector) -
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() -
getDirectionHint
-
hasDirectionHint
public boolean hasDirectionHint() -
setDirectionHint
@Nonnull public Steering setDirectionHint(@Nonnull org.joml.Vector3d direction, @Nonnull Rotation3f rotation, boolean forceOverwrite) -
setDirectionHint
-
setDirectionHint
-
hasYaw
public boolean hasYaw() -
hasYawOrDirection
public boolean hasYawOrDirection() -
getYawOrDirection
public float getYawOrDirection() -
hasPitch
public boolean hasPitch() -
hasPitchOrDirection
public boolean hasPitchOrDirection() -
getPitchOrDirection
public float getPitchOrDirection() -
hasRoll
public boolean hasRoll() -
hasRollOrDirection
public boolean hasRollOrDirection() -
getRollOrDirection
public float getRollOrDirection() -
getSpeed
public double getSpeed() -
getRelativeTurnSpeed
public double getRelativeTurnSpeed() -
toString
-