Skip to content

3D engine that AI agents drive

Reuse crossProduct after merging main (#983)

Nguyen Xuan An8238caf13791
diff --git a/src/vehicle-damage.js b/src/vehicle-damage.js
index 9f573d63..1d5a0bf3 100644
--- a/src/vehicle-damage.js
+++ b/src/vehicle-damage.js
@@ -439,14 +439,6 @@ const DOOR_REST_SPEED = 0.05;
const DEFAULT_DOOR_MAX_ANGLE_DEGREES = 70;
const DEFAULT_DOOR_DAMPING = 3;
-function crossProduct(first, second) {
- return [
- first[1] * second[2] - first[2] * second[1],
- first[2] * second[0] - first[0] * second[2],
- first[0] * second[1] - first[1] * second[0],
- ];
-}
-
function dotProduct(first, second) {
return first[0] * second[0] + first[1] * second[1] + first[2] * second[2];
}