From 33a1cdc3532d145944b00a4ca03fd01d4d5b9532 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Wed, 13 Dec 2023 13:47:44 -0500 Subject: get the collision detections for cubes and sphers to work using specific cases of separate axis theorem. however, the velocities are no longer flipping. --- scenefiles-4d/unit_cube.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'scenefiles-4d/unit_cube.json') diff --git a/scenefiles-4d/unit_cube.json b/scenefiles-4d/unit_cube.json index 6b1ee6f..b21615a 100644 --- a/scenefiles-4d/unit_cube.json +++ b/scenefiles-4d/unit_cube.json @@ -21,7 +21,17 @@ { "type": "directional", "color": [1.0, 1.0, 1.0], - "direction": [-3.0, -2.0, -1.0, 0.0] + "direction": [3.0, 3.0, 3.0, 3.0] + }, + { + "type": "directional", + "color": [1.0, 0.0, 0.0], + "direction": [3.0, -3.0, 3.0, -3.0] + }, + { + "type": "directional", + "color": [0.0, 0.0, 1.0], + "direction": [-3.0, 3.0, 3.0, -3.0] } ] }, @@ -34,7 +44,7 @@ "primitives": [ { "type": "cube", - "diffuse": [1.0, 0.0, 0.0], + "diffuse": [1.0, 0.0, 1.0], "specular": [1.0, 1.0, 1.0], "shininess": 25.0, "velocity": [0.0, 0.0, 0.0, 0.0] -- cgit v1.2.3-70-g09d2