UnityTrafficSimulation/UnityProject/Assets/Scripts/misc/moveForward.cs
2026-09-13 20:53:11 +01:00

12 lines
262 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class moveForward : MonoBehaviour {
public float speed = 1;
void FixedUpdate () {
transform.position += transform.forward * speed * Time.deltaTime;
}
}