I'm using PolyLine to draw line between 2 cubes. But updating the position of polyline after cubes are translated& rotated isnot taking effect.
Initial set up -- works fine
bounds=toy.getMesh().getBoundingBox();
SimpleVector vec1=SimpleVector.create(
(bounds[0]+bounds[1])/2,
(bounds[2]+bounds[3])/2,
(bounds[4]+bounds[5])/2
);
bounds=toy3.getMesh().getBoundingBox();
SimpleVector vec2=SimpleVector.create(
(bounds[0]+bounds[1])/2,
(bounds[2]+bounds[3])/2,
(bounds[4]+bounds[5])/2
);
Polyline line1=new Polyline(new SimpleVector[]{vec1,vec2}, Color.GREEN);
Code used to update line position
line1.update(new SimpleVector[]{toy.getTransformedCenter(),toy3.getTransformedCenter()});
[attachment deleted by admin]