Drag : Access the demo
Drag initially a project to learn BabylonJS. The idea was to reproduce something similar to the sample project explaning how AABB collision works from Mozilla. The first step of the project was to drag a mesh around a scene. But developing this feature was, if not difficult, at least more complex than I initially thought. The project is now about showing what are the maths behind dragging objects.
You will need NodeJS or Docker.
Command from the root folder of the project.
node -v
v21.6.1
# install dependency
npm install
# start the application
npm run start
Command from the root folder of the project.
docker build . --tag {your_tag}
docker run --publish 8080:8080 {your_tag}
Access at http://localhost:8080