Weird little bug
Blitz3D Forums/Blitz3D Beginners Area/Weird little bug
| ||
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. |
| ||
Without seeing any code (and possibly a bigger screenshot) its difficult to say. First thoughts would be an int/float conversion problem. |
| ||
Edit: Found it, Turns out the y value of the bullet wasn't a float. Int/float strikes again! |