Example usage for com.badlogic.gdx.graphics.g3d StillModelInstance getBoundingSphereRadius

List of usage examples for com.badlogic.gdx.graphics.g3d StillModelInstance getBoundingSphereRadius

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g3d StillModelInstance getBoundingSphereRadius.

Prototype

public float getBoundingSphereRadius();

Source Link

Usage

From source file:com.badlogic.gdx.graphics.g3d.test.PrototypeRendererGL20.java

License:Apache License

@Override
public void draw(StillModel model, StillModelInstance instance) {
    if (cam != null)
        if (!cam.frustum.sphereInFrustum(instance.getSortCenter(), instance.getBoundingSphereRadius()))
            return;
    drawableManager.add(model, instance);
}