swift502 / Sketchbook

3D playground built on three.js and cannon.js.

Home Page:https://jblaha.art/sketchbook/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Character physics stuck in box

raoneel opened this issue · comments

I've noticed that the character can get stuck if it jumps directly into a box physics collider. It basically sticks to the box and stays in the falling animation. You can leave by turning around however. Is there any way to make it so that it bounces off instead?

Screen Shot 2020-04-24 at 12 35 31 PM

That didn't happen in my demos.

What are your friction values? I think it should be 0.3 on the environment

and 0.1 or even 0 on the player capsule

Try setting the second one to 0 and it should definitely work. If not then I'm not sure why it happens to you.

Setting the character friction to 0 seems to work well, thanks!