Package com.github.stephengold.joltjni
Class CustomDebugRendererSimple
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.DebugRenderer
com.github.stephengold.joltjni.DebugRendererSimple
com.github.stephengold.joltjni.CustomDebugRendererSimple
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
A customizable
DebugRendererSimple
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawLine
(double x1, double y1, double z1, double x2, double y2, double z2, int colorInt) Draw the specified 3-D line.void
drawText3d
(double xx, double yy, double zz, String text, int colorInt, float height) Draw the specified 3-D text.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.Methods inherited from class com.github.stephengold.joltjni.DebugRenderer
drawArrow, drawBox, drawBox, drawBox, drawBox, drawBox, drawBox, drawCapsule, drawCapsule, drawCapsule, drawCoordinateSystem, drawCoordinateSystem, drawCylinder, drawCylinder, drawCylinder, drawGeometry, drawGeometry, drawLine, drawMarker, drawOpenCone, drawPie, drawPlane, drawSphere, drawSphere, drawSphere, drawSwingConeLimits, drawSwingPyramidLimits, drawTaperedCylinder, drawText3D, drawText3D, drawText3D, drawTriangle, drawUnitSphere, drawWireBox, drawWireBox, drawWireBox, drawWirePolygon, drawWirePolygon, drawWireSphere, drawWireSphere, drawWireTriangle, drawWireUnitSphere, drawWireUnitSphere, nextFrame, sInstance
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
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 endpointy1
- the Y coordinate of the first endpointz1
- the Z coordinate of the first endpointx2
- the X coordinate of the 2nd endpointy2
- the Y coordinate of the 2nd endpointz2
- the Z coordinate of the 2nd endpointcolorInt
- the color of the line
-
drawText3d
Draw the specified 3-D text. Meant to be overridden.- Parameters:
xx
- the X coordinate of the textyy
- the Y coordinate of the textzz
- the Z coordinate of the texttext
- the text to display (not null)colorInt
- the color of the textheight
- 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 vertexy1
- the Y coordinate of the first vertexz1
- the Z coordinate of the first vertexx2
- the X coordinate of the 2nd vertexy2
- the Y coordinate of the 2nd vertexz2
- the Z coordinate of the 2nd vertexx3
- the X coordinate of the 3rd vertexy3
- the Y coordinate of the 3rd vertexz3
- the Z coordinate of the 3rd vertexcolorInt
- the color of the triangleordinal
- the ECastShadow ordinal
-