コード例 #1
0
        public override PShape3D CreateShape(GameObject root)
        {
            Fix64Vec3 s = CalculateSize();

            if (s != Fix64Vec3.zero)
            {
                _currentSize = s;
                _shape       = Parallel3D.CreateMesh(meshData, s);

                if (createUnityPhysicsCollider)
                {
                    gameObject.AddComponent <MeshCollider>();
                }

                return(_shape);
            }
            else
            {
                return(null);
            }
        }