Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- renderDebugVector(Vector3d, Vector3d, Vector3f, World)
- renderDebugVector(Vector3d, Vector3d, Vector3f, float, World)
- renderDebugVectorTo(Vector3d, Vector3d, Vector3f, World)
- renderDebugVectorTo(Vector3d, Vector3d, Vector3f, float, World)
- renderDebugSphere(Vector3d, Vector3f, World)
- renderDebugSphere(Vector3d, Vector3f, float, World)
- renderDebugSphere(Vector3d, double, Vector3f, World)
- renderDebugSphere(Vector3d, double, Vector3f, float, World)
Class VisHelper
java.lang.Object
com.hypixel.hytale.server.npc.util.VisHelper
Helper for rendering debug shapes (arrows, spheres) in the world via
DebugUtils,
using shared constants for scale, time, and default opacity.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.joml.Vector3fstatic final org.joml.Vector3fstatic final org.joml.Vector3fstatic final org.joml.Vector3fstatic final doublestatic final doublestatic final floatstatic final doublestatic final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrenderDebugSphere(org.joml.Vector3d position, double radius, org.joml.Vector3f color, float opacity, World world) Renders a debug sphere at the given position with the given radius and opacity.static voidrenderDebugSphere(org.joml.Vector3d position, double radius, org.joml.Vector3f color, World world) Renders a debug sphere at the given position with the given radius and default opacity.static voidrenderDebugSphere(org.joml.Vector3d position, org.joml.Vector3f color, float opacity, World world) Renders a debug sphere at the given position with default scale and the specified opacity.static voidrenderDebugSphere(org.joml.Vector3d position, org.joml.Vector3f color, World world) Renders a debug sphere at the given position with default scale and opacity.static voidrenderDebugVector(org.joml.Vector3d position, org.joml.Vector3d direction, org.joml.Vector3f color, float opacity, World world) Renders a debug arrow at the given position in the given direction with the specified opacity.static voidrenderDebugVector(org.joml.Vector3d position, org.joml.Vector3d direction, org.joml.Vector3f color, World world) Renders a debug arrow at the given position in the given direction, using default opacity.static voidrenderDebugVectorTo(org.joml.Vector3d position, org.joml.Vector3d direction, org.joml.Vector3f color, float opacity, World world) Renders a debug arrow from (position - scaledDirection) to position with the specified opacity.static voidrenderDebugVectorTo(org.joml.Vector3d position, org.joml.Vector3d direction, org.joml.Vector3f color, World world) Renders a debug arrow from (position - scaledDirection) to position, using default opacity.
-
Field Details
-
DEBUG_COLOR_STEERING_POST
public static final org.joml.Vector3f DEBUG_COLOR_STEERING_POST -
DEBUG_COLOR_STEERING_PRE
public static final org.joml.Vector3f DEBUG_COLOR_STEERING_PRE -
DEBUG_COLOR_AVOIDANCE
public static final org.joml.Vector3f DEBUG_COLOR_AVOIDANCE -
DEBUG_COLOR_SEPARATION
public static final org.joml.Vector3f DEBUG_COLOR_SEPARATION -
DEBUG_MIN_VECTOR_DRAW_LENGTH_SQUARED
public static final double DEBUG_MIN_VECTOR_DRAW_LENGTH_SQUARED- See Also:
-
DEBUG_VECTORS_SCALE
public static final double DEBUG_VECTORS_SCALE- See Also:
-
DEBUG_VECTORS_TIME
public static final float DEBUG_VECTORS_TIME- See Also:
-
DEBUG_TRANSPARENT
public static final float DEBUG_TRANSPARENT- See Also:
-
DEBUG_SPHERE_SCALE
public static final double DEBUG_SPHERE_SCALE- See Also:
-
-
Constructor Details
-
VisHelper
public VisHelper()
-
-
Method Details
-
renderDebugVector
public static void renderDebugVector(@Nonnull org.joml.Vector3d position, @Nonnull org.joml.Vector3d direction, @Nonnull org.joml.Vector3f color, @Nonnull World world) Renders a debug arrow at the given position in the given direction, using default opacity.- Parameters:
position- arrow origin in world spacedirection- arrow direction (scaled byDEBUG_VECTORS_SCALE); no-op if belowDEBUG_MIN_VECTOR_DRAW_LENGTH_SQUAREDcolor- arrow colorworld- world to render in
-
renderDebugVector
public static void renderDebugVector(@Nonnull org.joml.Vector3d position, @Nonnull org.joml.Vector3d direction, @Nonnull org.joml.Vector3f color, float opacity, @Nonnull World world) Renders a debug arrow at the given position in the given direction with the specified opacity.- Parameters:
position- arrow origin in world spacedirection- arrow direction (scaled byDEBUG_VECTORS_SCALE); no-op if belowDEBUG_MIN_VECTOR_DRAW_LENGTH_SQUAREDcolor- arrow coloropacity- opacity for the debug shapeworld- world to render in
-
renderDebugVectorTo
public static void renderDebugVectorTo(@Nonnull org.joml.Vector3d position, @Nonnull org.joml.Vector3d direction, @Nonnull org.joml.Vector3f color, @Nonnull World world) Renders a debug arrow from (position - scaledDirection) to position, using default opacity.- Parameters:
position- arrow end point in world spacedirection- direction from start to end (scaled byDEBUG_VECTORS_SCALE); no-op if belowDEBUG_MIN_VECTOR_DRAW_LENGTH_SQUAREDcolor- arrow colorworld- world to render in
-
renderDebugVectorTo
public static void renderDebugVectorTo(@Nonnull org.joml.Vector3d position, @Nonnull org.joml.Vector3d direction, @Nonnull org.joml.Vector3f color, float opacity, @Nonnull World world) Renders a debug arrow from (position - scaledDirection) to position with the specified opacity.- Parameters:
position- arrow end point in world spacedirection- direction from start to end (scaled byDEBUG_VECTORS_SCALE); no-op if belowDEBUG_MIN_VECTOR_DRAW_LENGTH_SQUAREDcolor- arrow coloropacity- opacity for the debug shapeworld- world to render in
-
renderDebugSphere
public static void renderDebugSphere(@Nonnull org.joml.Vector3d position, @Nonnull org.joml.Vector3f color, @Nonnull World world) Renders a debug sphere at the given position with default scale and opacity.- Parameters:
position- center of the sphere in world spacecolor- sphere colorworld- world to render in
-
renderDebugSphere
public static void renderDebugSphere(@Nonnull org.joml.Vector3d position, @Nonnull org.joml.Vector3f color, float opacity, @Nonnull World world) Renders a debug sphere at the given position with default scale and the specified opacity.- Parameters:
position- center of the sphere in world spacecolor- sphere coloropacity- opacity for the debug shapeworld- world to render in
-
renderDebugSphere
public static void renderDebugSphere(@Nonnull org.joml.Vector3d position, double radius, @Nonnull org.joml.Vector3f color, @Nonnull World world) Renders a debug sphere at the given position with the given radius and default opacity.- Parameters:
position- center of the sphere in world spaceradius- sphere radius (scale)color- sphere colorworld- world to render in
-
renderDebugSphere
public static void renderDebugSphere(@Nonnull org.joml.Vector3d position, double radius, @Nonnull org.joml.Vector3f color, float opacity, @Nonnull World world) Renders a debug sphere at the given position with the given radius and opacity.- Parameters:
position- center of the sphere in world spaceradius- sphere radius (scale)color- sphere coloropacity- opacity for the debug shapeworld- world to render in
-