.. | .. |
---|
177 | 177 | |
---|
178 | 178 | public void spawnRagdoll(boolean walk) // random) |
---|
179 | 179 | { |
---|
180 | | - RagDoll ragDoll = new RagDoll(null, new Vector3f(0f, 0f, 0f), 0.45f, walk); // Math.random() > 0.5/*true*/); // true); |
---|
| 180 | + // KIDS4 |
---|
| 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; |
---|
181 | 183 | ragdolls.add(ragDoll); |
---|
182 | 184 | |
---|
183 | 185 | bRep = null; |
---|
.. | .. |
---|
277 | 279 | // |
---|
278 | 280 | ObjectArrayList<Transform> initialmatrices; |
---|
279 | 281 | |
---|
| 282 | + float myzoffset; |
---|
| 283 | + |
---|
280 | 284 | void Reset() |
---|
281 | 285 | { |
---|
282 | 286 | // int numObjects = dynamicsWorld.getNumCollisionObjects(); |
---|
.. | .. |
---|
309 | 313 | walkdefined = true; |
---|
310 | 314 | } |
---|
311 | 315 | |
---|
312 | | - ragdolls.get(0).init(/*staticdynamicsWorld,*/ new Vector3f(0f, 0f, 0f), 0.45f, walk); |
---|
| 316 | + ragdolls.get(0).init(/*staticdynamicsWorld,*/ new Vector3f(0f, 0f, 0f), ragdolls.get(0).scale, walk, myzoffset); |
---|
313 | 317 | |
---|
314 | 318 | bRep = null; |
---|
315 | 319 | } |
---|
| 320 | + |
---|
| 321 | + static float zoffset = 0; |
---|
316 | 322 | |
---|
317 | 323 | void DrawNode(iCameraPane display, Object3D /*Composite*/ root, boolean selected) // ?? |
---|
318 | 324 | { |
---|
.. | .. |
---|
341 | 347 | |
---|
342 | 348 | // assert(bRep != null); |
---|
343 | 349 | |
---|
344 | | - if (Globals.isLIVE() && live && display.DrawMode() == display.SHADOW) // FUCK |
---|
| 350 | + if (Globals.isLIVE() && live && display.DrawMode() == display.SHADOW) // SHADOW |
---|
345 | 351 | { |
---|
346 | 352 | // float ms = getDeltaTimeMicroseconds(); |
---|
347 | 353 | // float minFPS = 1000000f / 60f; |
---|
.. | .. |
---|
486 | 492 | |
---|
487 | 493 | tc.getFrameOffsetB(trans); |
---|
488 | 494 | |
---|
489 | | - if (false) // c == 2) // DEBUG |
---|
| 495 | + if (false) //c == 8) // DEBUG |
---|
490 | 496 | { |
---|
491 | 497 | gl.glDisable(gl.GL_LIGHTING); |
---|
492 | 498 | |
---|
.. | .. |
---|
515 | 521 | |
---|
516 | 522 | gl.glPopMatrix(); |
---|
517 | 523 | |
---|
518 | | - tc.getFrameOffsetB(trans); |
---|
| 524 | + //tc.getFrameOffsetB(trans); |
---|
519 | 525 | |
---|
520 | 526 | gl.glColor3f(0, 1, 0); |
---|
521 | 527 | |
---|