예제 #1
0
 public SerializableKeyFrame(FreeCameraKeyFrame fk)
 {
     this.cameraMode = CameraMode.Free;
     this.position   = new SerializableVector3(fk.position);
     this.rotation   = new SerializableQuaternion(fk.rotation);
     this.fov        = fk.fov;
     this.time       = fk.time;
 }
예제 #2
0
 public SerializableKeyFrame(TripodCameraKeyFrame tk)
 {
     this.cameraMode = CameraMode.Tripod;
     this.position   = new SerializableVector3(tk.position);
     this.rotation   = new SerializableQuaternion(tk.rotation);
     this.yOffset    = tk.focusOffsetY;
     this.fov        = tk.fov;
     this.time       = tk.time;
 }
예제 #3
0
 public SerializableKeyFrame(OrbitCameraKeyFrame ok)
 {
     this.cameraMode = CameraMode.Orbit;
     this.position   = new SerializableVector3(ok.position);
     this.rotation   = new SerializableQuaternion(ok.rotation);
     this.yOffset    = ok.focusOffsetY;
     this.radialPos  = ok.radialPos;
     this.fov        = ok.fov;
     this.time       = ok.time;
 }
예제 #4
0
 public TransformInfo(Transform t)
 {
     _position = new SerializableVector3(t.localPosition);
     _rotation = new SerializableQuaternion(t.localRotation);
     _scale    = new SerializableVector3(t.localScale);
 }
예제 #5
0
 private TransformInfo(Vector3 pos, Quaternion rot, Vector3 scale)
 {
     _position = new SerializableVector3(pos);
     _rotation = new SerializableQuaternion(rot);
     _scale    = new SerializableVector3(scale);
 }