x


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 =)

more ▼

asked Jan 04 '12 at 12:53 PM

Jenzik gravatar image

Jenzik
-4 2 3

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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)

more ▼

answered Jan 07 '12 at 05:54 PM

Hybris gravatar image

Hybris
415 5 8 10

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2090
x39
x25
x4

asked: Jan 04 '12 at 12:53 PM

Seen: 475 times

Last Updated: Jan 07 '12 at 05:54 PM