|
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?
Thanks.
(comments are locked)
|
|
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:
(comments are locked)
|
