Hi guys,
I got a script attached to a door object, this script make the door open up and close down while clicking on the “open” button. and everything is ok that way.
The problem is, when the door is closing, if the player or an enemy is under, the door close anyway.
So I made a raycast going from door object to the down direction, so if the raycast hits the player, the door opens. the problem is, the raycast, I dont know why, acctivates when the player is near the door, not under.
- I need to make the door ignoreRaycast collison, witch is ennoying because i cant use my bulletsRaycasts anymore on the door.
So the question to you guys is: did do ever face this kind of situation ? do you have an idea how i should make my door system ?
thank you,
PARADOKS