From 0bd0360bfce429548d9207b8f0db26d7f62185bf Mon Sep 17 00:00:00 2001 From: stephengold Date: Fri, 21 Jun 2024 20:13:40 -0700 Subject: [PATCH] PhysicsRigidBody: rename a method argument --- .../java/com/jme3/bullet/objects/PhysicsRigidBody.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MinieLibrary/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java b/MinieLibrary/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java index 43a52e263..7aa75f931 100644 --- a/MinieLibrary/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java +++ b/MinieLibrary/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java @@ -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);