- Home /
Circle around enemy,
I'm making a 3rd person game where I want my player to be able to shoot lighting. I want a circle to appear around the enemy (on the ground), where I'm aiming (to represent where the lightning is going to hit). What is the best approach to achieve this?
What sort of effect are you looking for with the circle? There are a number of ways of doing it, such as a mesh, projector or particle effect.
any effect, I just want the player to be able to see where the lightning strike is going to hit.
Answer by Ambrose998800 · Mar 06, 2019 at 04:30 PM
Draw a circle with alpha background and make a plane/quad object with the circle as cut-out material. Then, if you aim at the enemy, check via ray down the ground. Set position of the quad then to hit.point and align it via transform.up = hit.normal to the normal of the ground.
Your answer
Follow this Question
Related Questions
raycast is pointing in two directions? 1 Answer
Trouble with Raycast shooting 1 Answer
Problem with raycasting in direction of mouse 0 Answers
ui problem 0 Answers