Unexpected Capsule shape settings
Posted: Sun Aug 25, 2019 10:43 pm
Hi
So, I have terrain included in my physics and also character controllers for my player avatar. Im not sure if its a bug or just me making assumptions but took me awhile to work out why characters did not stand on the terrain exactly. Turns out the capsule height must be set using the following formula.
Seems a bit counter intuitive. I guess the height is for the cylinder part and the rounded ends are not included
So, I have terrain included in my physics and also character controllers for my player avatar. Im not sure if its a bug or just me making assumptions but took me awhile to work out why characters did not stand on the terrain exactly. Turns out the capsule height must be set using the following formula.
Code: Select all
CapsuleHeight = AvatarHeight - (CapsuleRadius * 2)