isaac-mason / recast-navigation-js

JavaScript navigation mesh construction, path-finding, and spatial reasoning toolkit. WebAssembly port of Recast Navigation.
https://recast-navigation-js.isaacmason.com
MIT License
273 stars 25 forks source link

PlayCanvas Package #434

Open marklundin opened 2 months ago

marklundin commented 2 months ago

Hi, I'm on the PlayCanvas team. Just wondering if you'd be willing to accept a PR to support PlayCanvas integration?

isaac-mason commented 2 months ago

Hey @marklundin! I am generally open to it 🙂

What would be involved in supporting playcanvas?

Earlier this year there was a brief related discussion on playcanvas forums related to esm support, this package currently only has an esm build - https://forum.playcanvas.com/t/implement-recast-navigation/34255/8

I'm out of the loop on whether this has changed, and keen to hear what you'd want that playcanvas package to look like.

For context, the core recast-navigation package is agnostic to other libraries e.g. threejs. The recast-navigation/three package just contains some helpers for creating a navmesh from three.js meshes, and visualisation helpers.

Would you be looking to add a recast-navigation/playcanvas package with similar helpers?

marklundin commented 2 months ago

Ah that's great. yep we are now rolling out the ESM scripts, and I thought showing a recast working in PlayCanvas would be a great demo.

Essentially yes, it would likely be a small set of helpers that replicate the three package but for PlayCanvas. I should be able to prep a PR for review today. I just thought it would be good sitting alongside your other recast libs.

isaac-mason commented 2 months ago

Okay got it! I'm happy to review & merge a recast-navigation/playcanvas package similar to recast-navigation/three, for sure. I'll keep an eye out 🙂

Hamad-exarta commented 1 month ago

Hey this would be a very helpful integration for one our products built on playcanvas. Can you let me know when it would be available for public use?

isaac-mason commented 1 month ago

I've published the initial version of the @recast-navigation/playcanvas package now! https://www.npmjs.com/package/@recast-navigation/playcanvas

There will almost certainly be some issues to shake out of this initial version. I added a basic example playcanvas-vite-example to this repo but it doesn't use all of the helpers in the playcanvas package yet. If anyone is keen to improve that example, help would be welcome! 🙂

Hamad-exarta commented 1 month ago

Thanks Issac , we have a solution that coverts 2D ecommerce websites to 3D stores , with recast we can integrate site navigation interfaces in 3D. We will certainly post any issues or improvments.