Skip to main content

About LineStripArray and Thread

1 reply [Last post]
Joined: 2008-01-28

Dear all,

I want to create a lot of point and then use LineStripArray to connect them together. I want to create that the line can be added one by one with time delay 0.5 second. But it's does not work!?

There is my code fragment:

int[] length = new int[1];
length[0] = 4;

LineStripArray lsa = new LineStripArray (4, LineArray.COORDINATES, length);


//Try create a set of points to connect all of sphere

Point3f[] connectPoint = {
new Point3f(0.063f, 0.85f, 0.099f),//1
new Point3f(0.083f, 0.81f, 0.02f),//2
new Point3f(0.083f, 0.84f, 0.04f),//3
new Point3f(0.085f, 0.91f, 0.03f)};

for (int i = 0; i

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2006-12-21

I think you should create your lines using your own extended Behavior class, and using WakeupOnElapsedTime.

Your behavior can be fired after an AWT event, and then start drawing you lines after some time, using WakeupOnElapsedTime