Пример #1
0
        public static GameObject CreateNew(Vector3 position, Quaternion rotation)
        {
            GameObject  go          = new GameObject();
            BConvexHull bConvexHull = go.AddComponent <BConvexHull>();

            CreateNewBase(go, position, rotation);
            bConvexHull.BuildMesh();
            go.name = "BConvexHull";
            return(go);
        }
Пример #2
0
 [MenuItem("GameObject/Create Other/BulletForUnity/BConvexHull")]  //right click menu
 static void CreateBConvexHull()
 {
     Selection.activeObject = BConvexHull.CreateNew(GetCameraRaycastPosition(), Quaternion.identity);
     PostCreateObject();
 }