コード例 #1
0
        public static void Instantiate(RigidTransform transform,
                                       Entity prefabEntityBody,
                                       Entity prefabEntityGroin,
                                       Entity prefabEntityThigh,
                                       Entity prefabEntityShin)
        {
            var em     = World.DefaultGameObjectInjectionWorld.EntityManager;
            var hexped = new Hexped();

            hexped.Initialize(in _data,
                              em,
                              transform,
                              prefabEntityBody,
                              prefabEntityGroin,
                              prefabEntityThigh,
                              prefabEntityShin);
            hexped.ApplyTransform(em);
        }
コード例 #2
0
        public static void Instantiate(RigidTransform transform,
                                       Entity prefabEntityBody,
                                       Entity prefabEntityGroin,
                                       Entity prefabEntityThigh,
                                       Entity prefabEntityShin)
        {
            var em     = World.Active.EntityManager;
            var hexped = new Hexped();

            _data = HexpedData.Create();
            hexped.Initialize(in _data,
                              em,
                              transform,
                              prefabEntityBody,
                              prefabEntityGroin,
                              prefabEntityThigh,
                              prefabEntityShin);
            hexped.ApplyTransform(em);
            // hexped.createJoints(em);
        }