x


Lerpz tutorial - Capsule collider offset from center?

All,

I am following the 3d Platform tutorial and am seeing strange behavior with the Capsule Collider in that it appears in the viewport and behaves as if it has a built in position offset. I noticed this when I first worked through the tutorial section that explained the collider. It became apparent that it was causing an issue when it came time to add a shadow. Even though I position the shadow projector over the on screen character, when I run the game, the shadow appear where the capsule collider is in relation to the character.

Here's a picture showing the collider position and the xyz properties of the capsule from the property sheet:

http://img824.imageshack.us/i/unityoffsetproblem.jpg/

Anyone know what's causing this and how I can get it remedied?

Thanks!

more ▼

asked Apr 04 '11 at 09:22 PM

PsycloneTW gravatar image

PsycloneTW
3 1 1 2

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

1 answer: sort voted first

Change the offsets on the side and make it get in the middle... Might have been something screwed up during update or something... Easy fix.

more ▼

answered Apr 04 '11 at 10:28 PM

Justin Warner gravatar image

Justin Warner
6.3k 19 27 65

Having the same problem but I'm not sure which offsets you're talking about... which component are they in and what are the fields called?

Sep 02 '11 at 04:29 PM mrdodson

mrdodson, click on player and look at 'CharacterControler' that shows up in the inspector. You'll see 'Center' with x,y,z change those to move the Capsule Collider to the position you want.

Sep 19 '12 at 12:58 AM R
(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:

x1682
x127
x109
x79
x37

asked: Apr 04 '11 at 09:22 PM

Seen: 1611 times

Last Updated: Sep 19 '12 at 12:58 AM