throw / fling object or prefab

Already made ​​some attempts scripts, but I’m not hitting. How do I release an object. I’m making a dart throws up his target with Raycast. And score points. But the principle is launching the dart.

Help, thank you!

Your dart is going to have to be a rigidbody. You may want to look into…

Rigidbody

Rigidbody.velocity

Rigidbody.AddForce

If you want don’t want it to be affected by gravity while you apply your velocity, force, whatever then you may want to look at.

Rigidbody.useGravity