Add recoil velocity

This commit is contained in:
2026-02-06 13:06:46 -08:00
parent 340b30c8dc
commit 3bb5536820

View File

@@ -247,6 +247,9 @@ const Shoot = (() => {
const run = Math.cos(radians) * cannonLength;
const origin = { x: x + run, y: y + rise };
const { x: vx, y: vy } = Velocity[entity_id];
Velocity[entity_id] = { x: vx - run, y: vy - rise };
return {
origin,
target: {

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB