コード例 #1
0
        public fbs_BVHNode GetMasterList(fbs_BVHNode obj, int j)
        {
            int num = base.__offset(22);

            if (num == 0)
            {
                return(null);
            }
            return(obj.__init(base.__indirect(base.__vector(num) + j * 4), base.bb));
        }
コード例 #2
0
        protected override void OnRebuildData()
        {
            fbs_Bounds fbsBounds = new fbs_Bounds();

            for (int i = 0, k = m_fbsObj.MasterListLength; i < k; ++i)
            {
                fbs_BVHNode node = m_fbsObj.GetMasterList(i);

                node.GetBounds(fbsBounds);
                Bounds bounds = new Bounds();

                fbs_vec3 center = fbsBounds.Center;
                fbs_vec3 size   = fbsBounds.Size;
                bounds.center = new Vector3(center.X, center.Y, center.Z);
                bounds.size   = new Vector3(size.X, size.Y, size.Z);
                m_boundsCache.Add(bounds);
            }
        }
コード例 #3
0
 public static fbs_BVHNode GetRootAsfbs_BVHNode(ByteBuffer _bb, fbs_BVHNode obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }