Skip to content

Commit

Permalink
PhysicsRigidBody: rename a method argument
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jun 22, 2024
1 parent 928d12a commit 0bd0360
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -806,17 +806,17 @@ public void setAngularVelocityDp(Vec3d omega) {
* @param desiredShape the shape to apply (not null, alias created)
*/
@Override
public void setCollisionShape(CollisionShape collisionShape) {
Validate.nonNull(collisionShape, "collision shape");
public void setCollisionShape(CollisionShape desiredShape) {
Validate.nonNull(desiredShape, "desired shape");
if (isDynamic()) {
validateDynamicShape(collisionShape);
validateDynamicShape(desiredShape);
}

super.setCollisionShape(collisionShape);
super.setCollisionShape(desiredShape);

if (hasAssignedNativeObject()) {
long objectId = nativeId();
long shapeId = collisionShape.nativeId();
long shapeId = desiredShape.nativeId();
setCollisionShape(objectId, shapeId);
updateMassProps(objectId, shapeId, mass);

Expand Down

0 comments on commit 0bd0360

Please sign in to comment.