summaryrefslogtreecommitdiff
path: root/3d
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-07-18 20:43:15 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-07-18 20:43:15 -0400
commit62817a0737a7ea7e0a6d54647648b9ab07280f44 (patch)
tree3b1e905bde07fb255575cf0517449c86ecd24ae7 /3d
parent25dba9a853ba2aaab3cc89214927d74a774a01a2 (diff)
(mkosarek) better mathlib now containing quaternions
Diffstat (limited to '3d')
-rwxr-xr-x3d/rigidbody/dist/output.wasmbin43282 -> 43282 bytes
-rw-r--r--3d/rigidbody/main.cpp9
2 files changed, 9 insertions, 0 deletions
diff --git a/3d/rigidbody/dist/output.wasm b/3d/rigidbody/dist/output.wasm
index 9365ee9..d6fadbe 100755
--- a/3d/rigidbody/dist/output.wasm
+++ b/3d/rigidbody/dist/output.wasm
Binary files differ
diff --git a/3d/rigidbody/main.cpp b/3d/rigidbody/main.cpp
index 1dfc593..c83018b 100644
--- a/3d/rigidbody/main.cpp
+++ b/3d/rigidbody/main.cpp
@@ -13,6 +13,15 @@
#include <cmath>
#include <cfloat>
+struct Rigidbody3d {
+ Vector3 velocity;
+ Vector3 position;
+
+ void update(float32 dtSeconds) {
+
+ }
+};
+
struct Cube {
Mesh3d mesh;