Game Development Reference
In-Depth Information
Creating a basic 3D scene
In
Chapter 13
,
Basic 3D Programming
, you learned how to create a basic model.
Let's do it again. Create a simple scene with a ball and ground, as shown in the
following screenshot:
Add the following code to
MyCollisionTest.java
:
package com.packtpub.libgdx.collisiontest;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
...
import com.badlogic.gdx.utils.Array;
public class MyCollisionTest extends ApplicationAdapter {
PerspectiveCamera cam;
ModelBatch modelBatch;