コード例 #1
0
 public TSCallback(int nodeIndex, Transform3D transform)
 {
     Transform = transform;
     NodeIndex = nodeIndex;
 }
コード例 #2
0
 public virtual void Dispose()
 {
     _IsDisposed = true;
     _dirtyListener = null;
     _parentTransform = null;
 }
コード例 #3
0
 /// <summary>
 /// Returns true if this transform is a child of the specified parent transform.
 /// </summary>
 /// <param name="parent">The parent transform for which to check inheritance.</param>
 /// <param name="recursive">Specifies whether or not the check should be recursive to parents of parents, etc.</param>
 /// <returns>True if the transform specified was found to be a parent of this transform.</returns>
 public bool IsChildOf(Transform3D parent, bool recursive)
 {
     if (_parentTransform != null)
     {
         if (_parentTransform == parent)
             return true;
         else if (recursive)
             return _parentTransform.IsChildOf(parent, true);
         else
             return false;
     }
     else
     {
         return false;
     }
 }
コード例 #4
0
        /// <summary>
        /// Add a Transform3D reference to a node.
        /// </summary>
        /// <param name="nodeIndex">The node index to ignore.</param>
        /// <param name="transform">The transform to use.</param>
        public void SetHandsOff(int nodeIndex, Transform3D transform)
        {
            if (_handsOffNodes.Test(nodeIndex))
                return;

            _handsOffNodes.Set(nodeIndex);
            _disableBlendNodes.Set(nodeIndex);
            _SetDirty(DirtyFlags.AllDirtyMask);

            if (transform != null)
            {
                if (_callbackNodes == null)
                    _callbackNodes = new List<TSCallback>();

                _callbackNodes.Add(new TSCallback(nodeIndex, transform));
            }
        }