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

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

Introduction

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

Prototype

public Vector3 getSortCenter();

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