Move character to the point smoothly

I want the character to move to the point. After clicking the mouse clicks, I get the position coordinate
At first I used this way:

Animation.CreateAndStartAnimation(“anim”, player, “position”, 30, time, player.position, endPoint, Animation.ANIMATIONLOOPMODE_CONSTANT);

But it will not hit the wall after add the collision,How to correctly collide and move smoothly to the endPoint?

Please provide us with a Playground repro. - just move - move & rotate - move, rotate & collisions

More examples Playground search page | Babylon.js Documentation

1 Like