Skip to main content
Inspiring
August 11, 2016

Rift through walls - Unity

Hi everyone,

I was wondering how people are dealing with players being able to lean through objects/walls & their colliders in Unity?
Any help, suggestions or code snippets would be highly appreciated.

    2 replies

    Inspiring
    August 11, 2016
    Putting collision on the head that is blocked by geometry is a bad idea, though you can try to detect these cases and fade the screen to black or otherwise put some sort of warning message.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Participant
    November 14, 2016
    In the game Dimensional, if you put your head through a wall for over a couple of seconds, it kills your character, and you start back from the last checkpoint.  I don't know what game engine they made it in, but that is how they deal with it.