- Home /
Question by
RoyalCoder · Oct 03, 2014 at 06:14 PM ·
transformsliding
2D Collider Transform for Sliding
Hi guys, I'm working on a 2D game ... what I'm trying to achieve is when the character have in front an object (platform in my case) to be able to sliding underneath not to collide with it, like in my graphic here:
How can I Transform the collider position when the character is sliding ? Any ideas ?
2q314qp.jpg
(92.7 kB)
Comment
Answer by robertbu · Oct 04, 2014 at 04:00 PM
You need to either 1) rotate the game object (with the colliders), 2) scale the colliders, or 3) disabled the colliders. As an untested idea, if the colliders were on a child (or parent) game object, you can rotate and/or scale that game object without rotating or scaling the visible object.
Your answer
![](https://koobas.hobune.stream/wayback/20220613164320im_/https://answers.unity.com/themes/thub/images/avi.jpg)