Point & click movement system on babylon.js

Hello everyone. I do not speak English well, but I hope you understand. I’m studying Babylon not long ago.
I was looking for point-click movement system. I found many examples but did not find anything similar with colision. I wrote it from what I found and what I know. Almost everything works well. I want to leave it here, maybe someone will cut precious hours.
https://playground.babylonjs.com/#1LZVU4#4
I have a few questions.
When I transfer everything to my domain. I have problems with the cursor. When you move it, it changes to default from css, although it should be different until you breake the button. can see here http://gamejs.hameron.live

1 Like

Not sure I understand, I see the same thing in the PG and in your site: the cursor is a “hand” all the time, even when I move it (tested in Windows, Chrome and Firefox latest versions).

Using the latest Firefox I have the following in the PG (playground)

default cursor
click on ground get a hand
move cursor return to default

in the live site it is a hand all the time

You’re right, I have the default cursor when moving the mouse in the PG (Chrome and Firefox)… I don’t know if something changed since I tested or if I had some sh*t on my glasses when I first tested (probably the latter…).

I have a new question. Maybe somewhere there have examples of how to do into train sectors? To make a movement round of mesh with calision.

I do not ask for me to write the code, I ask only to suggest a way to implementation. Tell me where you can read about it, please. Or what mechanics can be implemented.

As it is the week-end, answers will take more time.

This is a problem of path finding, so you can search anything related to this.

“nav mesh” would probably help here too, but I’m no specialist (look for “nav mesh” in this forum).

2 Likes

Yep, navigation mesh is your friend in this case the Docs can be found here - Create Navigation Mesh - Babylon.js Documentation , which would be a good starting point. This is a quick youtube that explains how to use it - YouTube

3 Likes

Wow! Thank you so much! This is exactly what I need! I searched for this example so long)

2 Likes