Skip to content

Commit

Permalink
bugfix: assertion failure in JoltPhysicsObject.java
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 7, 2025
1 parent dc09975 commit 79c9f4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/github/stephengold/joltjni/Body.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,11 @@ public MotionProperties getMotionProperties() {
result = null;
} else {
long propertiesVa = getMotionProperties(bodyVa);
JoltPhysicsObject container = getContainingObject();
if (isSoftBody(bodyVa)) {
result = new SoftBodyMotionProperties(this, propertiesVa);
result = new SoftBodyMotionProperties(container, propertiesVa);
} else {
result = new MotionProperties(this, propertiesVa);
result = new MotionProperties(container, propertiesVa);
}
}

Expand Down

0 comments on commit 79c9f4f

Please sign in to comment.