/// <summary> /// Gets Vector3 translated to openviii coordinates from given track animation's frame id /// </summary> /// <param name="trackId"></param> /// <param name="frameId"></param> /// <returns></returns> public Vector3 GetTrackFrameVector(int trackId, int frameId) { Keypoint kp = railEntries[trackId].keypoints[frameId]; return(new Vector3(Extended.ConvertVanillaWorldXAxisToOpenVIII(kp.x), Extended.ConvertVanillaWorldYAxisToOpenVIII(kp.y), Extended.ConvertVanillaWorldZAxisToOpenVIII(kp.Z) )); }