slembcke/Chipmunk2D

How can I make a segment that cannot be trespassed?

tuket opened this issue · 2 comments

tuket commented

I'm making a small game with some walls.

image

The green walls are 4 static segments.

You can control the smiley face with the arrow keys. For the character movement, I'm just setting the speed of it's rigidBody.

The problem is that when you walk against the wall I can feel some resistance, but it's quite easy to trespass the wall. How should I implement the walls so they cannot be trespassed?

Thanks in advance.

Please use the chipmunk2D forum for this kind of questions.
Also add a little bit more information (source snippet) also there.

tuket commented

Okay, I thought the forum was abandoned by the looks of it. That's the reason I decided to ask here.

image