I currently have a Blueprint set up to where the doors rotate within a Level Sequence and they are triggered when the player moves up to them and interact with the E key. However, while I was on my way to test out the doors, I notice that the character collides or clips into the door, causing them to get stuck and it even threw the character up onto the roof of the house due to collision. I read somewhere about using the Ignore Actor When Moving, but I’m fairly new to UE, so I am not so sure about where I would be able to place it on my current BP that I linked. I tried several ways and keep getting a Compile Error. Would love to know if there’s a way for the doors to ignore the character when they are in motion to prevent this collision in the future.
If you set the door to ignore the player and vice-versa, then the player will be able to pass through the door. That’s not a good solution. Furthermore, you want to eliminate this undesired behavior for the door colliding with anything, not just the player (imagine an AI character walking through a rotating door - they’d also get stuck or get launched to the roof).
I think using the sequencer the open/close doors is a bad approach. A timeline within the door itself would be much better. When you set up a timeline, use the ‘Set Actor Rotation’ node to set the door’s rotation.
But before calling ‘Set Actor Rotation’, check if there is anything colliding with the door (the static function ‘Box Overlap Actors’ can be used here). If there is anything colliding with the door, don’t update its rotation until that something moves away.
Another approach would be to have the player (or whoever is opening the door) move away from it while it’s opening. Think about how many 3rd person games do it - player input is temporarily disabled while the door opens. Most of the time, the character is animated to open the door.