This should be simple

Blitz3D Forums/Blitz3D Beginners Area/This should be simple

I have a ship in 3d, I'm only using the X# and Z# Axis.
I fire Missles... They are parented to the Ship for placement and alignment before I push the fire button. Once I push the fire button. I set EntityParent Missle,0 and send it on it's way...One thing I can't get to work correctly is if my ship is moving fast the bullets seem to come out the back because they are moving slower than the ship. I tried to determine velocity of the ship and add that to to the missle speed, but I can't get that to work properly either.

Does anyone have some code to help me out?

Thanks,
Eric

Well, you must have an idea of how fast the ship is moving? Use that as your bullets starting speed :o)

function fire_bullet(x,y,speed)
    b.bullet = new bullet
        b\speed = speed
        b\x = x
        b\y = y
end function


Something like that.