Skip to main content

Movement

๐Ÿ“„๏ธ Collision Resolution

Normally in Unity CharacterController handles both movement and collision resolution. Here the collision resolution is split into a separate system - CollideAndSlideSystem which implements a collide and slide algorithm. This allows the collision resolution to be used with any movement system. For now the algorithm only supports a sphere shape to detect collisions. The system takes the entities' RadiusComponent as the sphere's radius. Collisions are detected against any Unity Collider in the scene. A collider does not need to be present on the entities themselves.