Esempio n. 1
0
        /// <summary>
        /// get the specified joint default implementation does
        /// recursive search, subclasses may optimize/cache results.
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public virtual LLJoint GetJoint(string name)
        {
            LLJoint joint = null;

            LLJoint root = GetRootJoint();

            if (root != null)
            {
                joint = root.FindJoint(name);
            }

            if (joint == null)
            {
                Logger.LogWarning("Character.GetJoint", $"Failed to find joint.({name})");
            }
            return(joint);
        }