Interface ConstTriangle
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
Triangle
Read-only access to an
Triangle
. (native type: const Triangle)-
Method Summary
Modifier and TypeMethodDescriptionint
Return the triangle's material index.int
Return the triangle's user data.void
putVertices
(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
compareTo
Methods 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)
-