Hello I am currently implementing first person movement like in https://playground.babylonjs.com/#4HUQQ#1713 in svelte-babylon
.
I uploaded an example of the current state to First person movement | Svelte Babylon
The thing is I am slowly falling through the custom mesh, but on eg the. Ground
it works as expected.
I am setting all of the models meshes’ checkCollisions
property to true. The rest is configured exactly as with the simple ground plane.
The main code can be seen here: svelte-babylon/FirstPerson.story.svelte at first-person-example · Myrmod/svelte-babylon · GitHub
The checkCollisions
properties of the models meshes are being set at svelte-babylon/index.svelte at first-person-example · Myrmod/svelte-babylon · GitHub
I took the model from Babylon_101/public/models at 10_First_Person_Controller · Babylon-Projects/Babylon_101 · GitHub and followed the tutorial 10. First Person Controller in BabylonJS - YouTube
What could cause this slow falling through on custom elements?
EDIT:
Adding the following code snipped tells me, that collision is really being picked up. However it just slows down the fall.
// inside https://github.com/Myrmod/svelte-babylon/blob/first-person-example/src/examples/FirstPerson.story.svelte#L20
camera.onCollide = e => {
console.log(e)
}