프로그래밍/Unity10 getting object local direction? using UnityEngine; using System.Collections; public class DrawSampleVecs : MonoBehaviour { void OnDrawGizmos() { Color color; color = Color.green; // local up DrawHelperAtCenter(this.transform.up, color, 2f); color.g -= 0.5f; // global up DrawHelperAtCenter(Vector3.up, color, 1f); color = Color.blue; // local forward DrawHelperAtCenter(this.transform.forward, color, 2f); color.b -= 0.5f; // glob.. 2018. 9. 11. 유니티 자습서 https://catlikecoding.com/unity/tutorials/ http://rapapa.net/?p=3143 디자인패턴 2018. 9. 3. 이전 1 2 3 다음