Problem Adjusting CapsuleComponent for My 2DCharacter
I'm in a rather unusual situation. Normally, In the blueprint of a typical 2D game, the sprite is put within a root default CapsuleComponent which we can adjust its Half Height and Radius. Also the camera is usually set to an Orthographic perspective in order to conceal the fact that the character with its fat CapsuleComponent is adjusted way in front of the background:
My problem is that in my game the camera is in the Perspective (not Orthographic) mode and I really need to make CapsuleComponent almost as thin as as the sprite itself (Its ok if the CapusleComponent is a bit thicker). If I adjust the Radius of CapusleComponent to match the Sprite thickness make, the CapsuleComponent becomes to unusual to detect collisions of the character properly:
One solution that I thought about was to add a BoxCollision like this
But the problem is that the Collision doesn't work no matter what is the value of CollisionPresets or even if I disable the CapsuleComponent collision still it doesn't recognize collision of the box. Why the box collision doesn't work?
asked Aug 04 '15 at 05:32 AM in Blueprint Scripting
I tundestand that currently characters only support capsules. Any other shape of collision will make other dynamic objects bounce from that collision object but it will not block or control character movement, only the capsule control the movement. I have character that use the capsule for movement, while using the sprite collision shape to bounce objects that fall over it.
Hmm.. I think i get it now. What about some of this possible solutions after making the capsule bigger: - Disabling collision for background wall? - Making the character sprite displaced far from the center of the capsule, so the capsule don't collide with background wall while the sprite will be close to the wall? - Having invisible objects for collisions with adequate distance each other to work well, while the sprites are child components of this invisible colliders and all get show close in your 2D wall? - Out of ideas :)
Follow this question
Once you sign in you will be able to subscribe for any updates here