[Solved]Bullet Logic

I looked everywhere for this but couldn’t find it. What I wanted to implement into a game is a simple 2d bullet logic that is controlled by the mouse. I understand that you use the slope to determine it but I want to find a guess the ratio between x Velocity and y Velocity to get it to go in the right angle. any help would be greatly appreciated, even if it you are doing it all wrong use this method instead.

vx = speed * cos(angle);
vy = speed * sin(angle);

Add the velocities to their respective components each frame :slight_smile:

Thanks a lot got up and running works like a charm