Skip to content

Commit 5cbfee3

Browse files
committed
kolizní rotace fixnutá
1 parent 42632d8 commit 5cbfee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/kvh/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function updatePhysics() {
242242
ball2.vy -= impulse * ny;
243243

244244
// Exchange some spin
245-
const spinExchange = impulse * 0.3;
245+
const spinExchange = (ball1.r + ball2.r)/2 / 10;
246246
ball1.vr += spinExchange;
247247
ball2.vr -= spinExchange;
248248
}

0 commit comments

Comments
 (0)