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.
Show posts Menu
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);
}
}
Page created in 0.013 seconds with 10 queries.