ciruclar loop added for bodies & camera updates

This commit is contained in:
2024-04-11 16:47:59 +01:00
parent d63ac5c4e8
commit 8c46a110bc
9 changed files with 393 additions and 203 deletions

View File

@@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotationOffset : MonoBehaviour
{
private float m_Speed = 2.5f;
private void FixedUpdate()
{
transform.RotateAround(transform.parent.transform.position, Vector3.up, m_Speed * Time.fixedDeltaTime);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fdec66b4af82b494f830bb5ac54844ea
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: