i have a torrent that fires bullets but when its fires the bullet goes to the side of the torrent. here is the code i used.
Normal is the name of the bullet the torrent fires. rotation is a static instance variable of the Normal class
1 2 3 4 5 6 7 8 9 | public void fire() { if (reloadDelayCount >= gunReloadTime) { getWorld().addObject( new Normal(), getX(), getY()); Normal.rotation = getRotation(); } } |