I still haven't found the thread

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
//fps.. like 25
int sleepTime = 1000 / fps;
long first = System.currentTimeMillis();
long second = 0;
long actualSleepTime = 0;
while (bRender) {
//do some stuff in world here
buffer.clear();
world.renderScene(buffer);
world.draw(buffer);
buffer.update();
buffer.displayGLOnly();
second = System.currentTimeMillis();
actualSleepTime = sleepTime - (second - first);
if (actualSleepTime < 0) {
actualSleepTime = 0;
}
try {
Thread.sleep(actualSleepTime);
}
catch (InterruptedException ie) {}
first=second;
}
protected Hashtable places = new Hashtable();
public void updateKoordinates()
{
SimpleVector place = part.getOrigin();
place.add(new SimpleVector(-50, -55, 80));
places.put("0001", place);
place = part.getOrigin();
place.add(new SimpleVector(-50, -55, -420));
places.put("0002", place);
place = part.getOrigin();
place.add(new SimpleVector( 50, -55, -420));
places.put("0003", place);
place = part.getOrigin();
place.add(new SimpleVector( 50, -55, 80));
places.put("0004", place);
}
public SimpleVector placePos(String placeNr)
{
System.out.println(places.get(placeNr));
return (SimpleVector)places.get(placeNr);
}
Part1.setOrigin(origin);
Part2.setOrigin(origin);
Part3.setOrigin(origin);
Part1.addChild(Part2);
Part2.addChild(Part3);
world.addObject(Part1);
world.addObject(Part2);
world.addObject(Part3);
Part2.translate(1,0,0)
O1.translate(1,0,0
Page created in 0.011 seconds with 9 queries.