implementation of drecon in unity 2022 lts
forked from:
https://github.com/joanllobera/marathon-envs
12 lines
318 B
12 lines
318 B
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);
|
|
}
|
|
}
|
|
|