I'm trying to create a script, so that when the object 'runner' is 500m away, a rigidbody will be added. I've looked through the scipting manual, yet that produces an error, which I cannot solve. Where am I going wrong?
asked Apr 07 '11 at 04:44 PM
I'm assuming you really want to be adding the Rigidbody to the runner object. You're attempting to add it to dist, which is a float value; epic fail.
You probably want something like this:
answered Apr 07 '11 at 04:53 PM