Skip to content

Commit 3af1350

Browse files
committed
tutorial: comments
1 parent a8c3aee commit 3af1350

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

TutorialApps/src/main/java/jme3utilities/tutorial/HelloKinematics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class HelloKinematics
5252
/**
5353
* physics-simulation time (in seconds, ≥0)
5454
*/
55-
private static float elapsedTime = 0f;
55+
private static float elapsedTime;
5656
/**
5757
* kinematic ball, orbiting the origin
5858
*/

TutorialApps/src/main/java/jme3utilities/tutorial/HelloPin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void simpleInitApp() {
106106
NativeSoftBodyUtil.appendFromTriMesh(squareGrid, cloth);
107107
physicsSpace.addCollisionObject(cloth);
108108

109-
// Pin one of the corner nodes by setting its mass to zero:
109+
// Pin one of the corner nodes by zeroing its mass:
110110
int nodeIndex = 0; // upper left corner
111111
cloth.setNodeMass(nodeIndex, PhysicsBody.massForStatic);
112112
/*

TutorialApps/src/main/java/jme3utilities/tutorial/HelloServo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void simpleInitApp() {
114114
configureCamera();
115115
physicsSpace = configurePhysics();
116116

117-
// Add a dynamic, green frame:
117+
// Add a dynamic, green doorframe:
118118
PhysicsRigidBody frameBody = addFrame();
119119

120120
// Add a dynamic, yellow box for the door:

TutorialApps/src/main/java/jme3utilities/tutorial/HelloSoftRope.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void simpleInitApp() {
9696
NativeSoftBodyUtil.appendFromLineMesh(lineMesh, rope);
9797
physicsSpace.addCollisionObject(rope);
9898

99-
// Pin one of the end nodes by setting its mass to zero:
99+
// Pin one of the end nodes by zeroing its mass:
100100
int nodeIndex = 0;
101101
rope.setNodeMass(nodeIndex, PhysicsBody.massForStatic);
102102
}

0 commit comments

Comments
 (0)