x


transform.LookAt (target) mesh anchor point

Hi, when i use the smoothfollow script on my player with a camera it looks at the anchor point which is located at the feet of the model. Is there a way to put it higher and with less rotation ? Maybe make it look at his head ? Eddy.

more ▼

asked Jun 24 '10 at 01:15 AM

appels gravatar image

appels
256 18 19 27

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

1 answer: sort voted first

Add an empty gameobject as a child to your player, put it at the height you want the anchor point to be, then set the camera's target to that object

more ▼

answered Jun 24 '10 at 08:05 AM

Mike 3 gravatar image

Mike 3
30.5k 10 65 253

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

x1364
x329
x132
x16

asked: Jun 24 '10 at 01:15 AM

Seen: 1190 times

Last Updated: Jun 24 '10 at 01:15 AM