How to aim at crosshair in a 2D game?
The cube at the bottom is the shooter which is currently shooting in just the direction in which it is facing and my crosshair is controlled by VirtualJoystick, made using canvas and UI elements. Do I have to use raycast for doing this? Is there any other way to achieve this?
screenshot-7.png
(492.2 kB)
Comment
Your answer
Follow this Question
Related Questions
How to make gun shoot in the crosshair 0 Answers
Finding target position for particle system based shooting 0 Answers
Moving dotted guide line 0 Answers
Shooting animation and bullet generation issue 0 Answers
Fire projectile towards mouse position top-down 2D 0 Answers