We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc09975 commit 79c9f4fCopy full SHA for 79c9f4f
src/main/java/com/github/stephengold/joltjni/Body.java
@@ -232,10 +232,11 @@ public MotionProperties getMotionProperties() {
232
result = null;
233
} else {
234
long propertiesVa = getMotionProperties(bodyVa);
235
+ JoltPhysicsObject container = getContainingObject();
236
if (isSoftBody(bodyVa)) {
- result = new SoftBodyMotionProperties(this, propertiesVa);
237
+ result = new SoftBodyMotionProperties(container, propertiesVa);
238
- result = new MotionProperties(this, propertiesVa);
239
+ result = new MotionProperties(container, propertiesVa);
240
}
241
242
0 commit comments