x


my first person controller dosent work properly

when i add my fps controller to my scene i have to add the scripts for looking moving ect. but when i look around with my fps controller my whole body moves with it. this is really bad because when i look down at a wall for example my head will go through it and i can see through walls which i do not want can someone please help me with this problem?

more ▼

asked Dec 04 '10 at 10:29 PM

hugemaggot gravatar image

hugemaggot
168 40 42 45

hard to tell whats wrong if you dont want to post your code here. Youy'll need to explain and show your problem better if we are going to be able to help you.

Dec 04 '10 at 10:35 PM BerggreenDK
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Add a collider (The capsule) around the actual player... It'll stop the camera from going through the walls...

It's under Physics Components...

All the best!

more ▼

answered Dec 04 '10 at 11:17 PM

Justin Warner gravatar image

Justin Warner
6.3k 19 27 65

ive added a collider onto my capsule (player) but nothing changes.

Dec 05 '10 at 09:41 AM hugemaggot
(comments are locked)
10|3000 characters needed characters left

added here too. but when i look down, i can still see through the wall.

more ▼

answered Sep 22 '11 at 09:26 AM

R-GiGgS84 gravatar image

R-GiGgS84
31 10 10 12

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

x3731
x1172
x520
x87

asked: Dec 04 '10 at 10:29 PM

Seen: 1233 times

Last Updated: Sep 22 '11 at 09:26 AM