File tree Expand file tree Collapse file tree
TutorialApps/src/main/java/jme3utilities/tutorial Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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 /*
Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments