Paper2D collision problem with rotated objects

Hi,

I have a problem with collision between 2D Scroller Character and rotated sprites in Paper2D. Collision works fine when objects are not rotated. When I rotate the sprites there is some ‘thickness’ above the sprite and my main character walks little above the sprite.
I attached images to explain it visually (second image is from show collision command written in console).
The same problem appears in Paper2D Tilemaps too.

Hello zygmuntix,

You don’t want to use a square collision since you will encounter these issues. The capsule character collision is in place for reasons just like this. If you take a look at the Paper2D Side Scroller example, you can see we actually use a 3D Capsule to define the characters collision, which works well for almost all cases.

Paper 2D Collision Capsule

Wireframe 2D Collision

Let me know if you have questions.

Cheers,

My 2D Character was created from Paper2D Side Scroller character. I just changed some forces for jumping and other things, but I didn’t change collision. My 2D Character uses 3D physics - it uses capsule collider 3D.
My other sprites use 3D Physics. For me this issue isn’t yet resolved.

Try changing the ‘Walkable Floor Angle’ to a higher number so you are able to move up a steeper incline.

This is found in the area where you changed the other character movements options.

Character Movement : Walking

Cheers,

This doesn’t work. It was set to 45. I set it to maximum 90 value and nothing changed.

Could you provide me with screenshots of your Characters blueprint?

Can you reproduce this is a blank project, or is this only occurring in your project?

If you cannot reproduce this in a new Paper 2D Project, then I would do some comparisons between the default Paper 2D Character Movement and your own characters blueprint, to see where they differ and which settings may be preventing you from navigating up this ledge.

I managed to reproduce the problem in a new 2D scrolling example project. Thank you for your interest in this issue. You are very helpful :slight_smile:
Please download the project I linked:
2D Scrolling example project

So I found the setting you were looking for, and I must have misunderstood the issue. I thought you were having troubles climbing the slope, and not the visible collision.

All you need to do is open your characters blueprint and uncheck the option ‘Use Flat Base for Floor Checks’. This will allow the character to stand closer to the platform. This option is found within the Character Movement component within the dropdown for Walking.

Use Flat Base for Floor Checks

71403-flatbasefloorchecks.png

Let me know if you have further questions.

Thanks,

Ok, thanks. I will check it when I go home.
I would also like the character to go along the wall like shown in the screen (sorry but my GIMP skills aren’t good).
Should I make another topic for this on UE4 AnswerHub or this place is also good?

I think now that I can do this by just setting the rotation of player to the rotation of the wall. Please tell me if I am wrong.

Ok, thank you very much, problem is solved. Unchecking the option “Use Flat Base for Floor Checks” worked!! :slight_smile: