/// <summary> /// Create rotation point for given path node. /// </summary> /// <param name="nodeTimestamp"></param> private void CreateRotationPoint(float nodeTimestamp) { // Calculate value for new rotation point. var rotationValue = RotationPath.GetVectorAtTime(nodeTimestamp); // Create new rotation point. RotationPath.CreateNewNode( nodeTimestamp, rotationValue); }
public Vector3 GetRotationAtTime(float timestamp) { return(RotationPath.GetVectorAtTime(timestamp)); }