Interface ConstTriangle
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
Triangle
Read-only access to a
Triangle. (native type: const Triangle)-
Method Summary
Modifier and TypeMethodDescriptionintReturn the triangle's material index.intReturn the triangle's user data.voidputVertices(FloatBuffer storeBuffer) Write the vertex locations to the specified buffer and advance the buffer's position by 9.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getMaterialIndex
int getMaterialIndex()Return the triangle's material index. The triangle is unaffected.- Returns:
- the index
-
getUserData
int getUserData()Return the triangle's user data. The triangle is unaffected.- Returns:
- the value
-
putVertices
Write the vertex locations to the specified buffer and advance the buffer's position by 9. The triangle is unaffected.- Parameters:
storeBuffer- the destination buffer (not null)
-