Skip to content

Commit 8c4f8ff

Browse files
committed
rename some Java variables with excessively long names
1 parent f62cb14 commit 8c4f8ff

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

src/main/java/com/jme3/bullet/MultiBodyLink.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2022 jMonkeyEngine
2+
* Copyright (c) 2020-2025 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -385,8 +385,8 @@ public Vector3f inertia(Vector3f storeResult) {
385385
public boolean isCollisionWithParent() {
386386
long linkId = nativeId();
387387
int flags = getFlags(linkId);
388-
int disableCollisionWithParentFlag = 0x1;
389-
if ((flags & disableCollisionWithParentFlag) != 0x0) {
388+
int disableParentCollision = 0x1;
389+
if ((flags & disableParentCollision) != 0x0) {
390390
return false;
391391
} else {
392392
return true;

src/main/java/com/jme3/bullet/PhysicsSpace.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,6 @@ native private long createPhysicsSpace(
12721272
setSpeculativeContactRestitution(long spaceId, boolean apply);
12731273

12741274
native private static void stepSimulation(long spaceId, float timeInterval,
1275-
int maxSubSteps, float accuracy, boolean enableContactEndedCallback,
1276-
boolean enableContactProcessedCallback,
1277-
boolean enableContactStartedCallback);
1275+
int maxSubSteps, float accuracy, boolean enableContactEnded,
1276+
boolean enableContactProcessed, boolean enableContactStarted);
12781277
}

src/main/java/com/jme3/bullet/objects/infos/RigidBodySnapshot.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022-2024 jMonkeyEngine
2+
* Copyright (c) 2022-2025 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -173,7 +173,7 @@ public class RigidBodySnapshot {
173173
/**
174174
* anisotropic friction components
175175
*/
176-
final private Vector3f anisotropicFrictionComponents;
176+
final private Vector3f anisoFrictionComponents;
177177
/**
178178
* linear factors
179179
*/
@@ -249,7 +249,7 @@ public RigidBodySnapshot(PhysicsRigidBody body) {
249249
this.location = body.getPhysicsLocationDp(null);
250250

251251
// Vector3f
252-
this.anisotropicFrictionComponents = body.getAnisotropicFriction(null);
252+
this.anisoFrictionComponents = body.getAnisotropicFriction(null);
253253
this.angularFactor = body.getAngularFactor(null);
254254
this.linearFactor = body.getLinearFactor(null);
255255
this.totalAppliedForce = body.totalAppliedForce(null);
@@ -289,7 +289,7 @@ public void applyAllExceptIgnoreListTo(PhysicsRigidBody body) {
289289
body.setSpinningFriction(spinningFriction);
290290

291291
body.setAnisotropicFriction(
292-
anisotropicFrictionComponents, anisotropicFrictionModes);
292+
anisoFrictionComponents, anisotropicFrictionModes);
293293
body.setUserIndex(userIndex);
294294
body.setUserIndex2(userIndex2);
295295
body.setUserIndex3(userIndex3);

0 commit comments

Comments
 (0)