Skip to content

Commit

Permalink
SphereShape: add a (non-public) constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jun 28, 2024
1 parent 45bc130 commit 70ef746
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/github/stephengold/joltjni/SphereShape.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ public class SphereShape extends ConvexShape {
// *************************************************************************
// constructors

/**
* Instantiate a shape with the specified native object assigned.
*
* @param virtualAddress the virtual address of the native object to assign
* (not zero)
*/
SphereShape(long virtualAddress) {
super(virtualAddress);
}

/**
* Instantiate a shape with the specified radius.
*
Expand Down

0 comments on commit 70ef746

Please sign in to comment.