Ejemplo n.º 1
0
        private void InitializeRotationPath()
        {
            var firstNodePos = new Vector3(0, 0, 0);

            RotationPath.CreateNewNode(0, firstNodePos);

            var lastNodePos = new Vector3(1, 0, 1);

            RotationPath.CreateNewNode(1, lastNodePos);
        }
Ejemplo n.º 2
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);
        }