Skip to content

Commit cd7bf1e

Browse files
committed
Body: publicize the 2-argument constructor
1 parent 509fb6e commit cd7bf1e

File tree

1 file changed

+5
-2
lines changed
  • src/main/java/com/github/stephengold/joltjni

1 file changed

+5
-2
lines changed

src/main/java/com/github/stephengold/joltjni/Body.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,15 @@ public class Body extends NonCopyable implements ConstBody {
4545

4646
/**
4747
* Instantiate with the specified container and native object.
48+
* <p>
49+
* For use in custom contact listeners.
4850
*
49-
* @param container the containing object, or {@code null} if none
51+
* @param container the containing {@code PhysicsSystem} or
52+
* {@code BodyManager}
5053
* @param bodyVa the virtual address of the native object to assign (not
5154
* zero)
5255
*/
53-
Body(JoltPhysicsObject container, long bodyVa) {
56+
public Body(JoltPhysicsObject container, long bodyVa) {
5457
super(container, bodyVa);
5558
assert container instanceof PhysicsSystem
5659
|| container instanceof BodyManager;

0 commit comments

Comments
 (0)