implementation of drecon in unity 2022 lts
forked from:
https://github.com/joanllobera/marathon-envs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
318 B
13 lines
318 B
9 months ago
|
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);
|
||
|
}
|
||
|
}
|