x


Dragging ONE rigidbody

Okay, so I am making a game very similar to Amnesia: The Dark Descent (except, different storyline, place, time setting, etc etc) and I put the built in drag rigidbody script onto the player. Works great. One problem, which bugs the heck out of me, which is that it grabs ALL of the rigidbodies around it, not just it. So, I am stuck with grabbing all rigidbodies instead of one object, I am also a very horrible scripter, can anyone provide me help with this issue, without telling me how to adjust the script or something? Thank you.

                                                        -Joey
more ▼

asked Mar 29 '12 at 12:01 AM

salad__fingers gravatar image

salad__fingers
27 4 6 10

Just code some kind of 'lock' into it- a flag that is activated as soon as it grabs one thing, and disables upon release! I can't give you specifics, since I don't even know what the script you are using looks like.

If you want to make any kind of complex game mechanics at all, at some point you are going to have to bite the bullet and become good at scripting. There's no way around it. If you're bad now, it's just because you haven't practiced enough!

Mar 29 '12 at 12:04 AM syclamoth

Don't know how to do that, heheh.

Apr 07 '12 at 05:36 PM salad__fingers
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Maybe you should add gameObject.FindWindTag("BlahBlahBLah"); some where in the script.

  • Felipe
more ▼

answered Apr 07 '12 at 06:28 PM

BigBlob gravatar image

BigBlob
325 36 62 66

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

x5063
x1945
x1865
x1786

asked: Mar 29 '12 at 12:01 AM

Seen: 445 times

Last Updated: Apr 07 '12 at 06:28 PM