I can't seem to get this to work, what I'm trying to do is get the gameObject to add force in the direction of the hit point of the raycast which is being casted from the mosue position, however nothing I have tried so far works. Here's my code:
asked Jul 13 '12 at 08:54 PM
Well the direction of the hit is the direction of the ray - which you can get from ray.direction. Or are you thinking you want to take the direction from something else? in which case your moveDir logic is backwards right now and you probably want to do a .normalized on it.
answered Jul 13 '12 at 08:58 PM