Spaceball's camera messed with other games

This commit is contained in:
Braedon
2022-02-04 13:15:28 -05:00
parent 9722ce7122
commit b55a6dcabc
4 changed files with 482 additions and 1 deletions

View File

@ -8,6 +8,9 @@ namespace RhythmHeavenMania.Games.RhythmRally
{
public Transform cameraPos;
public GameObject ball;
public NaughtyBezierCurves.BezierCurve3D curve3D;
// Start is called before the first frame update
void Start()
{
@ -20,6 +23,8 @@ namespace RhythmHeavenMania.Games.RhythmRally
// Update is called once per frame
void Update()
{
ball.transform.position = curve3D.GetPoint(Mathf.Clamp(Conductor.instance.GetPositionFromBeat(0, 2f), 0, 1));
ball.transform.GetChild(0).transform.position = new Vector3(ball.transform.position.x, -0.399f, ball.transform.position.z);
}
}
}