List of usage examples for com.badlogic.gdx.math.collision BoundingBox getDimensions
public Vector3 getDimensions(final Vector3 out)
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); }