mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 11:37:40 +02:00
3D Camera and Viewport Position Update Fixes (#579)
* Fixed Camera in Rhythm Rally and BTSDS * commet out log * fixed viewport not updating canvas in onBeatChanged
This commit is contained in:
@ -281,19 +281,19 @@ namespace HeavenStudio.Games
|
||||
{
|
||||
if (!keepZoomOut)
|
||||
{
|
||||
GameCamera.additionalPosition = new Vector3(0, 0, 0);
|
||||
GameCamera.AdditionalPosition = new Vector3(0, 0, 0);
|
||||
zoomOutAnim.Play("NoZoomOut", 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
Util.EasingFunction.Function func = Util.EasingFunction.GetEasingFunction(lastEase);
|
||||
if (normalizedBeat > 1)
|
||||
GameCamera.additionalPosition = new Vector3(0, 30, -100);
|
||||
GameCamera.AdditionalPosition = new Vector3(0, 30, -100);
|
||||
else
|
||||
{
|
||||
float newPosY = func(0, 30, normalizedBeat);
|
||||
float newPosZ = func(0, -100, normalizedBeat);
|
||||
GameCamera.additionalPosition = new Vector3(0, newPosY, newPosZ);
|
||||
GameCamera.AdditionalPosition = new Vector3(0, newPosY, newPosZ);
|
||||
}
|
||||
if (normalizedAnimBeat > 1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user