Skip to content

Commit a3d1b71

Browse files
committed
Implement set y rotation when build in building area
1 parent 375ce17 commit a3d1b71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Scripts/AimAtCursorPlayerCharacterController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ public Vector3 GetMoveDirection(float horizontalInput, float verticalInput)
568568
// Rotate by set angles
569569
buildingAngles.y = buildYRotate;
570570
}
571+
ConstructingBuildingEntity.BuildYRotation = buildYRotate;
571572
}
572573
ConstructingBuildingEntity.Rotation = Quaternion.Euler(buildingAngles);
573574
// Find position to place building

0 commit comments

Comments
 (0)