Example usage for com.badlogic.gdx.maps.objects CircleMapObject getCircle

List of usage examples for com.badlogic.gdx.maps.objects CircleMapObject getCircle

Introduction

In this page you can find the example usage for com.badlogic.gdx.maps.objects CircleMapObject getCircle.

Prototype

public Circle getCircle() 

Source Link

Usage

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