x


Collision Query

Hi folks, I've got a basic understanding of collisions, but what I want to know is this:

Can I make an object pass through another, but still have OnCollisionEnter called?

more ▼

asked Jul 15 '10 at 11:27 AM

Peange gravatar image

Peange
38 2 2 6

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

1 answer: sort voted first

hi,

it sounds like what you want are trigger events. You need to set your Collider to 'isTrigger = true' (either via the check box in the collider component or via scripting).

Then they won't actually call Collision events, but rather 'trigger' events when another object passes through them. (eg OnTriggerEnter, OnTriggerExit and OnTriggerStay)

more ▼

answered Jul 15 '10 at 11:47 AM

andrew gravatar image

andrew
579 10 12 18

That's brilliant thanks, worked a treat

Jul 15 '10 at 11:48 AM Peange
(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:

x3681
x2737
x317

asked: Jul 15 '10 at 11:27 AM

Seen: 1113 times

Last Updated: Jul 15 '10 at 11:27 AM