From 2acdea651175368fdb133b13f635b3ac23f3e85d Mon Sep 17 00:00:00 2001 From: the lemons Date: Mon, 24 Apr 2023 16:20:50 -0500 Subject: angular velocity relative to velocity --- objects/x.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'objects/x.lua') diff --git a/objects/x.lua b/objects/x.lua index f97d1d4..080887b 100644 --- a/objects/x.lua +++ b/objects/x.lua @@ -19,7 +19,7 @@ function x_obj:tick() local px, py = self:observe_pos(o) local mag = util.magnitude{px, py} local dx, dy = px / mag, py / mag - self:avel_to_accel(o, dx * mag/range, dy * mag/range) + self:avel_to_accel(o, dx * mag/range/10, dy * mag/range/10) end end end -- cgit v1.2.3