missile

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class missile : MonoBehaviour {
    private Vector3 prePos;
    void SetPaT(Vector3 GeoPos){
        Vector3 pos = new Vector3 (GeoPos.x, GeoPos.y, GeoPos.z);
        transform.position = pos;
        Vector3 posMinus = pos -this.prePos;
        Quaternion rot = Quaternion.LookRotation(posMinus) ;
        transform.rotation = rot;
        prePos = pos;
    }
    void SetRot(Vector3 GeoEul){
        Vector3 eul = new Vector3 (GeoEul.x, GeoEul.y, GeoEul.z);
        transform.localEulerAngles = eul;
    }
    void SetSca(Vector3 sca){
        transform.localScale = sca;
    }
    void SetColor(int i){

    }
    void SetCard(byte[] buffer){

    }
}

你可能感兴趣的:(missile)