x


Ontrigger isn't working

Hi,
I have an enemy that creates areas that hurt you. I use an OnTrigger function, but if the area that is created occupies the same place as the character (and if he doesn't move), he remains unhurt.
Any ideas to correct this?

Thanks

more ▼

asked May 29 '11 at 09:57 AM

Infinity gravatar image

Infinity
141 36 39 44

Code would be extremely helpful.

May 29 '11 at 09:59 AM SirGive

Are you using OnTriggerStay()? I'm not sure if OnTriggerEnter() works if you instantiate a trigger around a whole object, it might not register the actual entry.

May 29 '11 at 10:02 AM save
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Have u attached collider to this area and set it as a trigger?

Yup, code would be most helpful!

more ▼

answered May 29 '11 at 12:34 PM

G_Sacristan gravatar image

G_Sacristan
137 24 28 30

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

x38

asked: May 29 '11 at 09:57 AM

Seen: 1278 times

Last Updated: May 29 '11 at 12:34 PM