Hi, I have actor class Path with the following code
This causes one new cammel to appear in the middle of the path, if bee is touching the path.
I have several Path objects in my world, everyone with it's own rotation. How can the camels have the same rotation, as the object they are covering, when they appear?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | public void add() { Actor bee; bee=getOneIntersectingObject(Bee. class ); if (bee!= null ) { World world; world=getWorld(); world.addObject( new Camel(), getX(), getY()); } } |