zoukankan      html  css  js  c++  java
  • unity给localRotation赋值

    转自:https://blog.csdn.net/u013720726/article/details/72852525

    transform.localPosition和transform.localScale都是直接赋值三元数,给旋转赋值需要用 
    方法一: 
      xxx.transform.localEulerAngles = new Vector3 (0.0f,0.0f,0.0f); 
    方法二: 
       xxx.transform.rotation=Quaternion.Euler(0.0f,0.0f,0.0f);

  • 相关阅读:
    转载
    转载
    HDU
    HDU
    Hdu
    转载
    HDU
    UVa
    HDU
    POJ
  • 原文地址:https://www.cnblogs.com/lichuangblog/p/9452812.html
Copyright © 2011-2022 走看看