public void CreateLightPole(Vector3 pos) { GameEntity entity = new GameEntity("prop"); Entity data = new Box(pos, 4, 18, 4, 800); data.CollisionInformation.LocalPosition += Vector3.Down * 4; entity.AddSharedData(typeof(Entity), data); PhysicsComponent roomPhysics = new PhysicsComponent(mainGame, entity); entity.AddComponent(typeof(PhysicsComponent), roomPhysics); genComponentManager.AddComponent(roomPhysics); UnanimatedModelComponent graphics = new UnanimatedModelComponent(mainGame, entity, GetUnanimatedModel("Models\\lamp"), new Vector3(4), Vector3.Down * 16.5f, 0, 0, 0); entity.AddComponent(typeof(UnanimatedModelComponent), graphics); modelManager.AddComponent(graphics); LightPoleController controller = new LightPoleController(mainGame, entity); entity.AddComponent(typeof(LightPoleController), controller); genComponentManager.AddComponent(controller); camera.AddLightPoleEntity(data); lightPoles.Add(entity); }