x


light colliders

is there any possible way that when a character walks over a section that is being lit from a light on the roof, that it sets off an alarm or some animations?

more ▼

asked Feb 04 '11 at 01:55 AM

Tyler Alvis gravatar image

Tyler Alvis
215 42 50 57

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

1 answer: sort voted first

For my stealth game, I accomplished this by putting triggers in every single area of significant light (actually in my game I had a bigger trigger with a smaller trigger inside... the smaller trigger was high light, the bigger one around it was low light, as I wanted a gradient effect and a stealth meter). There's unfortunately no "easy" way to accomplish what you're trying to do in Unity, since there's no way (that I know of) to "grab" how much light is being shed onto your character. If there was, I would have done it in a heartbeat. :)

more ▼

answered Feb 04 '11 at 02:22 AM

Jason B gravatar image

Jason B
1.7k 29 32 44

(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:

x1686
x86

asked: Feb 04 '11 at 01:55 AM

Seen: 973 times

Last Updated: Feb 04 '11 at 01:55 AM