Karl Winner wrote:
> public void updateData( Geometry geometry )
> {
> QuadArray q = (QuadArray)geometry;
> verts[1] += 0.01f;
> if(verts[1] > 1.0f) verts[1] = 0.0f;
> q.setInterleavedVertices( verts );
> setGeometry( q );
> }
It is enough to do
verts[1] += 0.01f;
if(verts[1] > 1.0f) verts[1] = 0.0f;
You do not need to set array again nor to set geometry.
As for the updater, you should try calling it from behaviour once per
some time (every frame ?) First, I'm not sure if updater will work if
quad is not live. Second, you won't notice 0.01 change, as it is run
only once.
Artur
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".