i have made two classes Bullet and Rocket, Bullet fires but Rocket does not. the code is the same apart from the classes. not too sure why its not working. Any ideas?...
/**
* Fire bullet
*/
public void fireBullet()
{
Bullet bullet = new Bullet();
getWorld().addObject(bullet, getX(),getY() );
bullet.setRotation(getRotation());
bullet.move(45.0);
}
/**
* Fire Rocket
*/
public void fireRocket()
{
Rocket rocket = new Rocket();
getWorld().addObject(rocket, getX(),getY() );
rocket.setRotation(getRotation());
rocket.move(40.0);
}

