Weird little bug

Blitz3D Forums/Blitz3D Beginners Area/Weird little bug

Terry B.(Posted 2008) [#1]
Ok, so I have a spaceship right, And it fires little red bullets. But the bullets for some reason don't align perfectly with the spaceship's rotation.

Like this:




What is going on?
The ship is clearly at rotation of 6 degrees, but the bullets are at 0.
It seems that whenever I fire a bullet, its a couple degrees this way or that off the rotation of the ship.


GfK(Posted 2008) [#2]
Without seeing any code (and possibly a bigger screenshot) its difficult to say.

First thoughts would be an int/float conversion problem.


Terry B.(Posted 2008) [#3]
Edit:
Found it, Turns out the y value of the bullet wasn't a float.
Int/float strikes again!