@@ -120,6 +120,12 @@ local function calc_velocity(pos1, pos2, old_vel, power)
-- Add old velocity
vel=vector.add(vel,old_vel)
-- Limit to terminal velocity
dist=vector.length(vel)
ifdist>250then
vel=vector.divide(vel,dist/250)
end
returnvel
end
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.