1
Bugs / Re: Null Object Ref. com.threed.jpct.Object3D.oneTextureSet
« on: December 30, 2015, 01:31:32 pm »
Thanks for the answer and it reminded me RTFM
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
ArrayList<Object3D> objects = new ArrayList<>();
Object3D modelObject = null;
public void addAndRemoveObjects()
{
while (objects.size() > 0)
{
scene.removeObject(objects.remove(0));
}
if (modelObject == null)modelObject = Primitives.getCube(10);
for (int i = 0; i < 5; i++)
{
Object3D obj = new Object3D(modelObject);
obj.translate(0,0,50);
scene.addObject(obj);
objects.add(obj);
}
}