x


Excluding a child object from also being drag-able

Hi,

I have an issue when using Unity's DragRigidbody script to drag the Player around the screen. The problem is that I have a box collider attached to him as a child, which means that the user can also click on this collider to move him.

I was wondering if there is a way to exclude the trigger from being 'drag-able'. Possibly layers?

Thanks

more ▼

asked May 20 '12 at 10:31 PM

asimov gravatar image

asimov
157 18 36 40

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

0 answers: sort voted first
Be the first one to answer this question
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:

x410
x287
x150
x18
x13

asked: May 20 '12 at 10:31 PM

Seen: 508 times

Last Updated: May 20 '12 at 10:44 PM