yomotsu / meshwalk

for your TPS game development with three.js.
240 stars 42 forks source link

Mesh sometimes gets caught on edges #8

Open notchris opened 5 years ago

notchris commented 5 years ago

Hello again! I'm having a weird issue where I've imported a model from Blender, a simple set of platforms that have inclines and connect. I'm noticing that the mesh will sometimes get caught on the edge of two platforms. I've tried adjusting the max slope, which does fix the issue but allows the mesh to walk through solid walls. I'm wondering how I can smooth edges to allow the mesh to walk over them, or if I'm missing sometime while importing. I've tried to subdivide the platform meshes to increate detection, this did not work. I also tried to increase the poly count of the player mesh, this also did not work. Thank you for any input on this issue! @yomotsu

notchris commented 5 years ago

For example, in this image, the mesh would get caught at the top of the incline, where the surface becomes flat again. This happens mainly when moving backwards, it does not catch every time moving forward.

https://i.imgur.com/9Z1pmiH.png https://i.imgur.com/P3ZmH6j.png