How to create a camera animation move smooth when click on the floor?

Hi! I was looking for some help to make thing like this: Babylon.js Playground

But only when it touches the ground, and not any mesh.

I have an invisible ball, when the user clicks on the floor the camera moves to the position of the ball. However, I would like to make an animation of the camera going to the position, and not just teleporting.

You could just check if its the ground they clicked on with .name

https://playground.babylonjs.com/#W844XY#4

1 Like

Thank you man, I’ll try to adapt it to my code. I don’t think I even need the ball.