Normand Briere
2019-11-21 ddb10cb84dddfeef1ef9946f2e13cef3c93e6cc4
GenericJoint.java
....@@ -178,7 +178,8 @@
178178 public void spawnRagdoll(boolean walk) // random)
179179 {
180180 // KIDS4
181
- RagDoll ragDoll = new RagDoll(null, new Vector3f(0f, 0f, 0f), 0.45f/2, walk); // Math.random() > 0.5/*true*/); // true);
181
+ RagDoll ragDoll = new RagDoll(null, new Vector3f(0f, 0f, 0f), 0.45f/2, walk, myzoffset = zoffset); // Math.random() > 0.5/*true*/); // true);
182
+ zoffset += 0.1f;
182183 ragdolls.add(ragDoll);
183184
184185 bRep = null;
....@@ -278,6 +279,8 @@
278279 //
279280 ObjectArrayList<Transform> initialmatrices;
280281
282
+ float myzoffset;
283
+
281284 void Reset()
282285 {
283286 // int numObjects = dynamicsWorld.getNumCollisionObjects();
....@@ -310,10 +313,12 @@
310313 walkdefined = true;
311314 }
312315
313
- ragdolls.get(0).init(/*staticdynamicsWorld,*/ new Vector3f(0f, 0f, 0f), ragdolls.get(0).scale, walk);
316
+ ragdolls.get(0).init(/*staticdynamicsWorld,*/ new Vector3f(0f, 0f, 0f), ragdolls.get(0).scale, walk, myzoffset);
314317
315318 bRep = null;
316319 }
320
+
321
+ static float zoffset = 0;
317322
318323 void DrawNode(iCameraPane display, Object3D /*Composite*/ root, boolean selected) // ??
319324 {
....@@ -342,7 +347,7 @@
342347
343348 // assert(bRep != null);
344349
345
- if (Globals.isLIVE() && live && display.DrawMode() == display.SHADOW) // FUCK
350
+ if (Globals.isLIVE() && live && display.DrawMode() == display.SHADOW) // SHADOW
346351 {
347352 // float ms = getDeltaTimeMicroseconds();
348353 // float minFPS = 1000000f / 60f;
....@@ -487,7 +492,7 @@
487492
488493 tc.getFrameOffsetB(trans);
489494
490
- if (false) // c == 2) // DEBUG
495
+ if (false) //c == 8) // DEBUG
491496 {
492497 gl.glDisable(gl.GL_LIGHTING);
493498
....@@ -516,7 +521,7 @@
516521
517522 gl.glPopMatrix();
518523
519
- tc.getFrameOffsetB(trans);
524
+ //tc.getFrameOffsetB(trans);
520525
521526 gl.glColor3f(0, 1, 0);
522527