Class CustomDebugRendererSimple

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class CustomDebugRendererSimple extends DebugRendererSimple
A customizable DebugRendererSimple.
  • Constructor Details

    • CustomDebugRendererSimple

      public CustomDebugRendererSimple()
      Instantiate a customizable renderer.
  • Method Details

    • drawLine

      public void drawLine(double x1, double y1, double z1, double x2, double y2, double z2, int colorInt)
      Draw the specified 3-D line. Meant to be overridden.
      Parameters:
      x1 - the X coordinate of the first endpoint
      y1 - the Y coordinate of the first endpoint
      z1 - the Z coordinate of the first endpoint
      x2 - the X coordinate of the 2nd endpoint
      y2 - the Y coordinate of the 2nd endpoint
      z2 - the Z coordinate of the 2nd endpoint
      colorInt - the color of the line
    • drawText3d

      public void drawText3d(double xx, double yy, double zz, String text, int colorInt, float height)
      Draw the specified 3-D text. Meant to be overridden.
      Parameters:
      xx - the X coordinate of the text
      yy - the Y coordinate of the text
      zz - the Z coordinate of the text
      text - the text to display (not null)
      colorInt - the color of the text
      height - the height of the text
    • drawTriangle

      public void drawTriangle(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, int colorInt, int ordinal)
      Draw the specified 3-D triangle. Meant to be overridden.
      Parameters:
      x1 - the X coordinate of the first vertex
      y1 - the Y coordinate of the first vertex
      z1 - the Z coordinate of the first vertex
      x2 - the X coordinate of the 2nd vertex
      y2 - the Y coordinate of the 2nd vertex
      z2 - the Z coordinate of the 2nd vertex
      x3 - the X coordinate of the 3rd vertex
      y3 - the Y coordinate of the 3rd vertex
      z3 - the Z coordinate of the 3rd vertex
      colorInt - the color of the triangle
      ordinal - the ECastShadow ordinal