O
O
Onigire2021-05-30 14:45:47
Game development
Onigire, 2021-05-30 14:45:47

How to set the trajectory of a bullet?

Please tell me how can I set the trajectory of the bullet in 2d, having the coordinates of the character and the position of the mouse?
(The bullet should fly from my character to a given point and continue its movement)))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yupiter7575, 2021-05-30
@Onigire

Google the sine of an angle

D
Dmitry Roo, 2021-05-30
@xez


Calculating ballistic trajectories in games

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question