-1
我希望將對象從A連續移動到B,如第1 A到B,然後B到A,然後再次A到B等等,這些都要提前感謝。我試過這個。使用翻譯連續移動對象
float speed X = 1; float speed Y = 0; float speed Z = 0;
// Use this for initialization
void Start() {
}
// Update is called once per frame
void Update() {
transform.Translate (new Vector 3 (speed X, speed Y, speed Z) * Time . delta time);
}