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); }
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); }