public Portal(float x, float y, World world, OrthographicCamera camera) { super(world, camera); this.x = x; this.y = y; this.prepareTextures(); portalBody = BodyFactory.createBody(new Vector2(x, y), BodyType.StaticBody); CircleShape shape = BodyFactory.createCircleShape(frames[0].getRegionWidth() / 4); BodyFactory.createFixture( portalBody, shape, new float[] {1, 1, 1}, true, Constants.ENVIRONMENT_GROUP); portalBody.setUserData(this); portalBody.setFixedRotation(true); }