initial
This commit is contained in:
1 parent
75fa7ab38c
commit
c9424320ae
1425 files changed
+484748
-5
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Unity.VRTemplate
|
||||
{
|
||||
/// <summary>
|
||||
/// Rotates this object at a user defined speed
|
||||
/// </summary>
|
||||
public class Rotator : MonoBehaviour
|
||||
{
|
||||
[SerializeField, Tooltip("Angular velocity in degrees per second")]
|
||||
Vector3 m_Velocity;
|
||||
|
||||
void Update()
|
||||
{
|
||||
transform.Rotate(m_Velocity * Time.deltaTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user