CircleCollisions

by Zaflis

Deletes player hitbox and adds new circular collision system

Tweaks
16 hours ago
2.0
6
Character
Owner:
Zaflis
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
2 days ago
Latest Version:
0.9.2 (16 hours ago)
Factorio version:
2.0
Downloaded by:
6 users

(Currently in beta testing phase, hoping to get feedback on possible issues that may arise! Use player-specific mod settings to enable debug info if you notice entities that should or should not have collisions; i'd like to know what their internal names are.)

Factorio is traditionally built around having rectangles as hitboxes for collisions. But it doesn't have to be! Now we can have circles where they need to be, in the collisions! You could think this is another kind of SqeuakThrough mod but smoother. There are no sharp edges on buildings and you can move through anything with ease. Vehicles behave without this system, as a character your collision to them however is circular. Should support multiplayer player to player collision although i haven't tested that either. Player hitbox is rather tiny anyway.

Player's hitbox is deleted and replaced with new scripted physics. It's not that bad for performance, around 0.05 - 0.2 ms in UPS cost. Most notably trains collision is a circle now, but that's hardly a solveable issue and i'll leave it as is. Collision against water was lost because of hitbox deletion so it had to also be completely rewritten in script, but it works well as far as i can tell.

Should be safe to install or uninstall without losing anything.