orient entrance to reflect previous exit orientation

This commit is contained in:
2022-11-07 16:22:00 +01:00
parent 1a1e7f87a0
commit 9e748a0f38
4 changed files with 19 additions and 19 deletions

View File

@@ -38,8 +38,9 @@ namespace Escape_Room_Engine.Engine.Scripts
{
toIn = door;
// to make sure the origin of the player doesn't move, the two doors must be placed in the same location
// to make sure the origin of the player doesn't move, the two doors must be placed in the same location in the same orientation
toIn.PlaceRoomRelative(rrPosition);
toIn.orientation = fromOut.orientation;
Logger.Log($"Connected passage to {door} at {rrPosition} (RR)", LogType.PassageConnection);
}