diff options
| author | sotech117 <michael_foiani@brown.edu> | 2023-12-13 13:47:44 -0500 |
|---|---|---|
| committer | sotech117 <michael_foiani@brown.edu> | 2023-12-13 13:47:44 -0500 |
| commit | 33a1cdc3532d145944b00a4ca03fd01d4d5b9532 (patch) | |
| tree | 833760d85ed92c39c1f9ffbd591dde4cf619689e /scenefiles-4d/unit_cube.json | |
| parent | 4fb06778c1a19914c759ab5db495754b1fd9e2c3 (diff) | |
get the collision detections for cubes and sphers to work using specific cases of separate axis theorem. however, the velocities are no longer flipping.
Diffstat (limited to 'scenefiles-4d/unit_cube.json')
| -rw-r--r-- | scenefiles-4d/unit_cube.json | 14 |
1 files changed, 12 insertions, 2 deletions
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] |
