예제 #1
0
        public Camera(Vector3 position, Vector3 target, Vector3 up)
        {
            this.viewProjection = new ViewProjectionComponent(this, position, target, up);
            this.AttachComponent(viewProjection);

            startPosition = position;
            startTarget = target;
            startUp = up;
        }
 public override void Start()
 {
     cameraViewProjection = (ViewProjectionComponent) Parent.GetComponent("ViewProjectionComponent");
 }