Adjusting capsule collider height when height change ability

avalonsutra

New member
First of all sorry for the many questions currently! I'm trying to get a number of UCC abilities to work properly so I can carry on with other tasks in my project.

I have a prone ability that makes the character go, well, prone. This automatically adjusts the character's capsule collider to a lower height but not low enough to be able to crawl under the desired obstacle height (0.5m). Since an animator is on the character the height adjust field on the ability has no effect.

I've added a CapsuleColliderPositionerPreset on the capsule collider adjuster components that is triggered when my Prone state kicks in but the Adjust Height and Height Override both seem to have no effect. The Rotate Collider property actually makes the collider look like it should be when prone but it also makes the character float over the ground as the collider is still too large. What would be the recommended approach to get this set up properly?


snag_20240507_0000.pngsnag_20240507_0001.png
 
Top