Skip to content

Commit

Permalink
RayCastResult: generalize a constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Oct 16, 2024
1 parent b9d6895 commit 32092af
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ public RayCastResult() {
* <p>
* For use in custom collectors.
*
* @param collector the underlying {@code RayCastBodyCollector}, or
* {@code null if none}
* @param underlying the containing object, or {@code null} if none
* @param castResultVa the virtual address of the native object to assign
* (not zero)
*/
public RayCastResult(RayCastBodyCollector collector, long castResultVa) {
super(collector, castResultVa);
public RayCastResult(JoltPhysicsObject underlying, long castResultVa) {
super(underlying, castResultVa);
}
// *************************************************************************
// new methods exposed
Expand Down

0 comments on commit 32092af

Please sign in to comment.