- Home /
Character Controller colides while sliding
I am using a character controller for my character. Character has basic animations, jump, run, slide. Animations are working properly. I am unable to slide my character through a slide obstacle. I have placed the obstacles very high but still my character is unable to slide under it. I have tried to reduce the capsule size, the size of the skinned mesh renderer but still no use.(I have noticed that the behavior of the character controller's capsule is the same for sliding and while running) Please help i am new to unity.
Answer by Piflik · Jan 01, 2013 at 03:35 PM
I would simply disable the colliders of the slide obstacles when the player is sliding...simply use the same key/button that you use for sliding, to enable/disable the collider with GetButtonDown/Up...wouldn't work on objects that are affected by gravity, though...