moving a rigidbody using another rigidbody

I have a rigidbody that is on a ball. When it is hit by another rigidbody that is a club, I want it to move a distance. The distance I want is supposed to be calculated by taking the clubs velocity and multpiling it to the balls velocity. For some reason, it says your trying to access a non static member ‘velocity’.

var ballMove = Rigidbody.velocity;
function OnCollisionEnter( other : Collision ){
other.rigidbody.AddForce(transform.forward * ballMove);
}

Is the physics engine itself not supplying the forces for you?

In any event, if this script is attached to the object with the rigidbody you are trying to access, remember that those instance properties always start with a lower case letter.

i.e. To access your object’s __R__igidbody, use .__r__igidbody:

var ballMove = rigidbody.velocity;

EDIT

The other issue you are going to run into with your example is the multiplication – you probably want the magnitude of the velocity vector like so:

var ballMove = rigidbody.velocity.magnitude;

function OnCollisionEnter( other : Collision )
{
    other.rigidbody.AddForce(transform.forward * ballMove);
}