Skip to content

Commit

Permalink
Dragons2 env tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevga committed Mar 13, 2023
1 parent 3dc778d commit b9ca116
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
22 changes: 4 additions & 18 deletions BeatSaberCinema/Environment/EnvironmentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -522,29 +522,15 @@ private static void DefaultSceneModifications(VideoConfig? videoConfig)
foreach (var spectrogram in spectrograms)
{
var pos = spectrogram.transform.position;
var newX = 16;
var newX = 18;
var newYRotation = 10;
if (pos.x < 0)
{
newX *= -1;
newYRotation = 180 - newYRotation;
}
spectrogram.transform.position = new Vector3(newX, pos.y, pos.z);
}

//Move rotating lasers BaseL and BaseR from x = -8/+8 to something farther away
var rotatingLaserPairs = EnvironmentObjects.Where(x => x.name.Contains("RotatingLasersPair") && x.activeInHierarchy);
foreach (var laser in rotatingLaserPairs)
{
foreach (Transform child in laser.transform)
{
var pos = child.transform.position;
var newX = 20;
if (pos.x < 0)
{
newX *= -1;
}
child.transform.position = new Vector3(newX, pos.y, pos.z);
}

spectrogram.transform.eulerAngles = new Vector3(0, newYRotation, 0);
}

var hallConstruction = EnvironmentObjects.LastOrDefault(x => x.name == "HallConstruction" && x.activeInHierarchy);
Expand Down
2 changes: 1 addition & 1 deletion BeatSaberCinema/Screen/Placement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static Placement GetDefaultPlacementForScene(PlaybackController.Scene sce
"PyroEnvironment" => new Placement(new Vector3(0f, 12f, 60f), Vector3.zero, 24f, null, 0f),
"EDMEnvironment" => new Placement(new Vector3(0f, 1.5f, 25f), Vector3.zero, 8f),
"LizzoEnvironment" => new Placement(new Vector3(0f, 8f, 63f), Vector3.zero, 16f),
"Dragons2Environment" => new Placement(new Vector3(0f, 6.4f, 67f), Vector3.zero, 16f),
"Dragons2Environment" => new Placement(new Vector3(0f, 5.8f, 67f), Vector3.zero, 33f),
_ => null
};
}
Expand Down

0 comments on commit b9ca116

Please sign in to comment.