diff --git a/html/images/space.svg b/html/images/space.svg
index 483d649..09bcadf 100644
--- a/html/images/space.svg
+++ b/html/images/space.svg
@@ -126,11 +126,12 @@
-
+
+
-
+
@@ -512,7 +513,6 @@ const Move = (() => {
const rise = contact.edge.yb-contact.edge.ya;
const run = contact.edge.xb-contact.edge.xa;
- const normalVector = { x: rise, y: -run };
drawLine(p.x - v.x, p.y - v.y, p.x, p.y, "blue"); // velocity vector
drawLine(contact.edge.xa, contact.edge.ya, contact.edge.xb, contact.edge.yb, "green"); // edge vector
@@ -567,7 +567,7 @@ const Move = (() => {
newX = prAvx - prBvx;
newY = prAvy - prBvy;
- drawLine(p.x, p.y, p.x + normalVector.x , p.y + normalVector.y, "black"); // edge normal vector
+ drawLine(p.x, p.y, p.x + vec2.rightNormal.x , p.y + vec2.rightNormal.y, "black"); // edge normal vector
drawLine(p.x, p.y, p.x + newX , p.y + newY, "blue"); // bounced velocity vector
Velocity[entity_id] = { x: newX, y: newY };
@@ -664,9 +664,10 @@ function init() {
started = false;
const mult = 10;
- s.position = { x: 0, y: -10 };
+ s.position = { x: 0, y: 0 };
// s.velocity = { x: 0, y: -10 };
- s.velocity = { x: 10, y: 20 };
+ // s.velocity = { x: 10, y: 20 };
+ s.velocity = { x: 0, y: 0 };
s.angularVelocity = 0;
// s. velocity = { x: -5*mult, y: 7*mult };