Exemplo n.º 1
0
 private void FixBoundsSkinned()
 {
     if (OverrideBounds)
     {
         HBUtils.FixSkinned(SkinnedMesh, OriginalSkinnedAABB, SkinnedBounds);
     }
     else
     {
         HBUtils.FixSkinned(SkinnedMesh, OriginalSkinnedAABB, transform, HBOffset());
     }
 }
Exemplo n.º 2
0
        public static void FixSkinned(SkinnedMeshRenderer skinned, float fixBoundsRadius)
        {
            HB hb = HB.Instance;

            if (hb == null)
            {
                return;
            }

            Vector3 hbOffset = HBUtils.GetOffset(GetSettings(), fixBoundsRadius);

            HBUtils.FixSkinned(skinned, skinned.localBounds, skinned.transform, hbOffset);
        }
Exemplo n.º 3
0
 public static void FixSkinned(SkinnedMeshRenderer skinned, Vector3 extents)
 {
     HBUtils.FixSkinned(skinned, skinned.localBounds, extents);
 }