From aaf778b92738d199d5ce5add33f73303c3f44063 Mon Sep 17 00:00:00 2001 From: stephengold Date: Mon, 13 Jan 2025 12:39:53 -0800 Subject: [PATCH] PhysicsCollisionEvent: correct the javadoc per issue #45 --- .../collision/PhysicsCollisionEvent.java | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/MinieLibrary/src/main/java/com/jme3/bullet/collision/PhysicsCollisionEvent.java b/MinieLibrary/src/main/java/com/jme3/bullet/collision/PhysicsCollisionEvent.java index d74712324..f12b47e50 100644 --- a/MinieLibrary/src/main/java/com/jme3/bullet/collision/PhysicsCollisionEvent.java +++ b/MinieLibrary/src/main/java/com/jme3/bullet/collision/PhysicsCollisionEvent.java @@ -259,12 +259,14 @@ public int getFlags() { } /** - * Return the triangle index in the shape of object A at the point of - * contact (native field: m_index0). + * Return the triangle index in the shape of object 0 at the point of + * contact (native field: m_index0). Object 0 could be object A, or it could + * be object B. *

- * If shape is convex, the index is undefined. + * If the shape is convex, the index is undefined. *

- * If shape is a CompoundCollisionShape, the index identifies a child shape. + * If the shape is a CompoundCollisionShape, the index identifies a child + * shape. *

* If the shape is a GImpactCollisionShape or MeshCollisionShape, the index * identifies a triangle in an IndexedMesh. @@ -283,12 +285,14 @@ public int getIndex0() { } /** - * Return the triangle index in the shape of object B at the point of - * contact (native field: m_index1). + * Return the triangle index in the shape of object 1 at the point of + * contact (native field: m_index1). Object 1 could be object A, or it could + * be object B. *

- * If shape is convex, the index is undefined. + * If the shape is convex, the index is undefined. *

- * If shape is a CompoundCollisionShape, the index identifies a child shape. + * If the shape is a CompoundCollisionShape, the index identifies a child + * shape. *

* If the shape is a GImpactCollisionShape or MeshCollisionShape, the index * identifies a triangle in an IndexedMesh. @@ -409,8 +413,9 @@ public Vector3f getNormalWorldOnB(Vector3f storeResult) { } /** - * Return the part index in the shape of object A at the point of contact - * (native field: m_partId0). + * Return the part index in the shape of object 0 at the point of contact + * (native field: m_partId0). Object 0 could be object A, or it could be + * object B. *

* If the shape is compound or convex, the index is undefined. *

@@ -430,8 +435,9 @@ public int getPartId0() { } /** - * Return the part index in the shape of object B at the point of contact - * (native field: m_partId1). + * Return the part index in the shape of object 1 at the point of contact + * (native field: m_partId1). Object 1 could be object A, or it could be + * object B. *

* If the shape is compound or convex, the index is undefined. *