List of usage examples for com.badlogic.gdx.maps.objects CircleMapObject getCircle
public Circle getCircle()
From source file:com.siondream.core.physics.MapBodyManager.java
License:Open Source License
private Shape getCircle(CircleMapObject circleObject) { Circle circle = circleObject.getCircle(); CircleShape circleShape = new CircleShape(); circleShape.setRadius(circle.radius / units); circleShape.setPosition(new Vector2(circle.x / units, circle.y / units)); return circleShape; }
From source file:genuini.world.WorldManager.java
private CircleShape getCircle(CircleMapObject circleObject) { Circle circle = circleObject.getCircle(); CircleShape circleShape = new CircleShape(); circleShape.setRadius(circle.radius / PPM); circleShape.setPosition(new Vector2(circle.x / PPM, circle.y / PPM)); return circleShape; }