Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 public Vector3 GetRotationAtTime(float timestamp)
 {
     return(RotationPath.GetVectorAtTime(timestamp));
 }