Game Starts With Doors Open [SOLUTION]

Spent literally an hour scratching my head at why my code as well as the model code wouldn’t run the game with the door initially closed. If you are experiencing the same problem, then you need to swap the OpenAngle parameter in OpenDoor() with the middle 0.f of CloseDoor() in the OpenDoor.cpp,

This obviously happens if you rotated your door during your initial build relative to how it automatically came out.

3 Likes

yup had the same problem. apparently, one should take note that the angle depends on which plane your door is currently in. 90 degrees doesn’t always mean its going to open the door or close it. Try other angle degrees to test its direction.

Privacy & Terms