- Home /
Stop a door from rotating when it touches player?
Is there a way using either the Character Controller, or the box colliders or rigidbodys, if when a door rotates and opens towards the player, it does not push the player?
I assume there is an easy way to do this, as right now I have a script that tells the door to stop rotating if it touches the player as it rotates but its not great. I am not sure if there is a standard way of doing this but any help is appreciated!
Comment
Answer by WheresMommy · Dec 19, 2019 at 06:48 AM
You could disable the collider when opening or do it like most games and have a opening animation which involves the player.