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){

    }
}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 晚上从同事家吃过晚饭,在宿舍楼下给老妈打了一通电话。前面听老妈唠叨了许久,后面我把自己今天的想法和老妈讲了...
    Crysral_caiyi阅读 1,449评论 1 0
  • 今天是周六,我和闺蜜相约一起去看刚刚上映的动画电影《欢乐好声音》。 第一次听到这个电影名字时,我还以...
    中学生马小兑作文集阅读 1,885评论 5 8