x


Camera to aim at raycast

Hi i'm working on a Kinect fps, for a final year uni project. and I need the camera to aim at the intercept of the raycast from the players gun. Any help would be much appreciated. Right now i have it as a child of the models shoulder but not the effect I was going for. anyone know a C# resource that could help.

more ▼

asked Jan 26 '12 at 10:53 PM

dirtydemon gravatar image

dirtydemon
35 2 6 8

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

1 answer: sort voted first

You can use LookAt to rotate the camera toward a Vector3. That should do it.

more ▼

answered Jan 27 '12 at 12:44 AM

Berenger gravatar image

Berenger
11k 12 19 53

(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:

x3014
x1535
x116

asked: Jan 26 '12 at 10:53 PM

Seen: 724 times

Last Updated: Jan 27 '12 at 12:44 AM