Character Padding

CiRiuS

16-02-2011 17:49:24

Hi i have a problem with cc:

I'm using the funcion createbackgrouncharacter, but leaves two unnecessary paddings and I can not remove them modifiying skinwidth.



How can i fix it?

betajaen

16-02-2011 18:17:32

Padding #1 is the step offset. It is a feature of the character controller. Basically the Character Controller "hovers" above the ground, this allows it to go over uneven terrain and up stairs. To make your player's feet be on the ground, just subtract the step offset from the Y component of the position of the character.

Padding #2 Maybe the skin width,of the ground plane. I don't think it's related to the CC.

CiRiuS

16-02-2011 20:12:21

Sorry but it isn't the step offset nor skinWidth.
For example, if i change charDescription.mStepOffset = 0.9f, nothing happen.
A simple Critter::Body with BoxDescription is exactly on the ground, so i think it is related with cc.

Anyway if i subtract any offset from the Y component of the character, the same padding will be between the head and the top of the capsule.

betajaen

16-02-2011 20:30:52

Just reduce the height of the capsule by the step offset.

CiRiuS

16-02-2011 21:53:54

Thanks for answers betajaen, but reducing the capsule by step offset is not working, the 2 paddings are persisting.