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; }
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; }
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; }
public TransformInfo(Transform t) { _position = new SerializableVector3(t.localPosition); _rotation = new SerializableQuaternion(t.localRotation); _scale = new SerializableVector3(t.localScale); }
private TransformInfo(Vector3 pos, Quaternion rot, Vector3 scale) { _position = new SerializableVector3(pos); _rotation = new SerializableQuaternion(rot); _scale = new SerializableVector3(scale); }