diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-04-10 21:54:43 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-04-10 21:54:43 -0400 |
commit | 88a08ee48cbbae086ddbfeaff0679bfe4fe6ce47 (patch) | |
tree | b62ec45eeb42b76ea1dae72d3cd8cea614c0194f /frontend/2d/_collisions/pill_line | |
parent | 756b9fdefc1a28ac46aa4b76676c7ffb57c9e11a (diff) |
Added a transpiler that will make it so that we no longer need any JavaScript of Jquery in our App
Diffstat (limited to 'frontend/2d/_collisions/pill_line')
-rw-r--r-- | frontend/2d/_collisions/pill_line/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/frontend/2d/_collisions/pill_line/main.cpp b/frontend/2d/_collisions/pill_line/main.cpp index 5aa0059..76dc7d4 100644 --- a/frontend/2d/_collisions/pill_line/main.cpp +++ b/frontend/2d/_collisions/pill_line/main.cpp @@ -11,6 +11,7 @@ #include <cmath> // Side note: It is Eastertime, so I chose this easter color palette. Enjoy: https://htmlcolors.com/palette/144/easter + struct Rigidbody { Vector2 force = { 0, 0 }; Vector2 velocity = { 0, 0 }; @@ -170,6 +171,7 @@ void load(); void update(float32 time, void* userData); void unload(); IntersectionResult getIntersection(Pill* pill, LineSegment* segment); +void resolveCollision(Rigidbody* first, Rigidbody* second, IntersectionResult* ir); // Global Variables WebglContext context; @@ -259,6 +261,10 @@ IntersectionResult getIntersection(Pill* pill, LineSegment* segment) { return result; } +void resolveCollision(Rigidbody* first, Rigidbody* second, IntersectionResult* ir) { + +} + void update(float32 deltaTimeSeconds, void* userData) { // Input |