Example usage for com.badlogic.gdx.math.collision BoundingBox getDimensions

List of usage examples for com.badlogic.gdx.math.collision BoundingBox getDimensions

Introduction

In this page you can find the example usage for com.badlogic.gdx.math.collision BoundingBox getDimensions.

Prototype

public Vector3 getDimensions(final Vector3 out) 

Source Link

Usage

From source file:com.shansown.game.tests.bullet.BulletConstructor.java

License:Apache License

/** Creates a btBoxShape with the same dimensions as the shape. */
public BulletConstructor(final Model model, final float mass) {
    final BoundingBox boundingBox = new BoundingBox();
    model.calculateBoundingBox(boundingBox);
    Vector3 dimensions = new Vector3();
    boundingBox.getDimensions(dimensions);
    create(model, mass, dimensions.x, dimensions.y, dimensions.z);
}