Hello
I store few SimpleVectors in collection class Hashtable like that
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);
}
The method updateKoordinates() is called only once.
After some time of runing my application and calling method placePos(placeNr)... SimpleVector cordinates are changed. Anyone has idea what could cause that??
Thanks