This is a strange thing to say… but i think my script isn’t “obeying” me. Have a look at this image:
I have an airplane. I need it to go FORWARD, but it is literally going up! As you see in the image, i want my plane to go to the circle marked between the white cubes, and it is going to the “X”. I read in the docs that BLUE stands for FORWARD and GREEN stands for UP in scripting. So what is wrong with my script? I have tested a lot of different combinations of position translation but it simply doesn’t work. What am i doing wrong? By the way, i am beginner at C# so i am probally missing some basic stuff here.
using UnityEngine;
using System.Collections;
public class PlaneControl : MonoBehaviour {
public float speed = 1f;
void Update()
{
transform.position = transform.position + (transform.forward * speed * Time.deltaTime);
}
}