From ddb10cb84dddfeef1ef9946f2e13cef3c93e6cc4 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Wed, 20 Nov 2019 20:49:12 -0500 Subject: [PATCH] New maze --- GenericJoint.java | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/GenericJoint.java b/GenericJoint.java index 9c45117..0ea1429 100644 --- a/GenericJoint.java +++ b/GenericJoint.java @@ -178,7 +178,8 @@ public void spawnRagdoll(boolean walk) // random) { // KIDS4 - RagDoll ragDoll = new RagDoll(null, new Vector3f(0f, 0f, 0f), 0.45f/2, walk); // Math.random() > 0.5/*true*/); // true); + RagDoll ragDoll = new RagDoll(null, new Vector3f(0f, 0f, 0f), 0.45f/2, walk, myzoffset = zoffset); // Math.random() > 0.5/*true*/); // true); + zoffset += 0.1f; ragdolls.add(ragDoll); bRep = null; @@ -278,6 +279,8 @@ // ObjectArrayList<Transform> initialmatrices; + float myzoffset; + void Reset() { // int numObjects = dynamicsWorld.getNumCollisionObjects(); @@ -310,10 +313,12 @@ walkdefined = true; } - ragdolls.get(0).init(/*staticdynamicsWorld,*/ new Vector3f(0f, 0f, 0f), ragdolls.get(0).scale, walk); + ragdolls.get(0).init(/*staticdynamicsWorld,*/ new Vector3f(0f, 0f, 0f), ragdolls.get(0).scale, walk, myzoffset); bRep = null; } + + static float zoffset = 0; void DrawNode(iCameraPane display, Object3D /*Composite*/ root, boolean selected) // ?? { @@ -342,7 +347,7 @@ // assert(bRep != null); - if (Globals.isLIVE() && live && display.DrawMode() == display.SHADOW) // FUCK + if (Globals.isLIVE() && live && display.DrawMode() == display.SHADOW) // SHADOW { // float ms = getDeltaTimeMicroseconds(); // float minFPS = 1000000f / 60f; @@ -487,7 +492,7 @@ tc.getFrameOffsetB(trans); - if (false) // c == 2) // DEBUG + if (false) //c == 8) // DEBUG { gl.glDisable(gl.GL_LIGHTING); @@ -516,7 +521,7 @@ gl.glPopMatrix(); - tc.getFrameOffsetB(trans); + //tc.getFrameOffsetB(trans); gl.glColor3f(0, 1, 0); -- Gitblit v1.6.2