Normand Briere
2019-09-28 57f4646563d6757f65ddc00ca38975c352d76de7
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 {
....@@ -487,7 +492,7 @@
487492
488493 tc.getFrameOffsetB(trans);
489494
490
- if (false) // c == 2) // DEBUG
495
+ if (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