Ive been figuring out unity tonight and im super stuck. Im trying to make a lil test game and i have a leg attatched to a first person camera that kicks in front when you click. I'm trying to figure out how to use a raycast to apply a force to the objects in front of the player when I do this. I can't seem to figure out how to work the raycast to idenify the object im looking at and apply a force to it at all.
This is honestly extremely simple.
When you want to kick something, do this:
to kick with a power of 100, like so:
answered Jun 16 '12 at 07:45 AM