- Home /
Finding objects in an arc/pie ?
Hello =)
Im having trouble with my combat system , I made one simple before where it just casted a raycast and it worked , But now i noticed it was kinda buggy , and you could even hit yourself sometimes . Well basicly I want to find all objects in an arc infront of me and send the damage input , yet i cant figure out how to do it :/ (Im a java script coder)
Thanks in advance , Utaelilya =)
Answer by Hybris · Jan 07, 2012 at 05:54 PM
Maybe you could use Physics.SphereCast, I never used it. If you want to send damage around you, you could use Vector3.distance("startingpoint".position, "endpoint".position)
Your answer
Follow this Question
Related Questions
How do I conditionally instantiate gameobject in a public class array? 0 Answers
use ScriptableObject as player data (rpg combat) 2 Answers
Instantiating a prefab that is in my project folder? 2 Answers
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers
How can i move a game object up and down so it acts like a obstacle for my sphere player 4 Answers