hello im trying to make a game in which my rocket fires a laser and destroys an asteroid. However i want to make it so when i fire at an asteroid it splits into 2. Any advise?
Actor asteroid = getOneIntersectingObject(BigAsteroid.class);
if(asteroid != null )
{
getWorld().removeObject(asteroid);
Space point = (Space)getWorld();
point.addScore(100);
}