x


Raycast from camera on mousedown.

I need a way to initiate a raycast from the camera when the player uses the mouse. Kind of like a laser, only once per click. I was trying to get together a method using rigidbodies, but the collision was faulty, and it was too slow.

more ▼

asked Feb 23, 2011 at 01:15 AM

Irsan gravatar image

Irsan
75 102 86 93

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first
more ▼

answered Feb 23, 2011 at 02:40 AM

DaveA gravatar image

DaveA
33.6k 419 346 482

Thanks, I got it working. No console errors.

Feb 23, 2011 at 03:07 AM Irsan
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5050
x2946

asked: Feb 23, 2011 at 01:15 AM

Seen: 7834 times

Last Updated: Feb 23, 2011 at 01:15 AM