Soccer Ball behaviour

Hi again Iam working on a Disabilty Rights educational kind of game/presentation.
I am trying to get a shpere to behave like a soccer ball. I want my character to be able to kick the ball.

my sripting scills not good yet so I am slowly reading up on it.

How do I switch on off a script adding Force to it?

My ball just won’t get up any velocity when the player runs into it. (I get to the kicking part later!)

Any tips and tricks to speed up my progress will be appricated!

To enable/dissable a script you’d do something like this:

transform.GetComponent(nameOfScript).enable = true;

or to dissable…

transform.GetComponent(nameOfScript).enable = false;

notice how there are not quotation marks on nameOfScript, when you ask for a script you don’t put quotes.

Hi Alfred,

You could try searching the script reference for a “pushRigidbodies” script, or use the rigidbody firstperson controller script off the wiki. That should give you the cause and effect you need.

HTH
AC

Tanks for that its knowing what to search for!
that helps heaps.

Have made progress in lots of other areas thanks for putting up with beginners questions.