How to add collision to mesh.movePOV?

I am using mesh movePOV to simulate the motion of GLB model… But there is a problem. The model will sink underground.

Like this: http://devmodels.oss-cn-shenzhen.aliyuncs.com/devtest/liubofang/video/bandicam%202022-07-22%2015-08-50-492.mp4

API documents have another method to add collision moveWithCollisions. But it doesn’t apply to my project

How to add collision to mesh.movePOV ?

this my code

What do you mean by that? If you can’t use moveWithCollisions you’ll need to check for them manually with Mesh Intersections | Babylon.js Documentation (babylonjs.com) or otherwise add physics to your scene Using A Physics Engine | Babylon.js Documentation (babylonjs.com)

1 Like