i see, this you have to look up in cannons documentation. they dont use arrays and three vectors but their own: Body | cannon-es Vec3 is a cannon primitive. i think you’re very close, just this pesky thing and you have it. if you manage to call that apply function it’s just about the position normal multiplied by negative force.
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Make a physics shape wherever the gltf model | 11 | 3567 | March 30, 2022 | |
CANNON.js not detecting collision between Trimesh and sphere | 2 | 286 | March 13, 2024 | |
Mesh / Model into Canon Convex/Trimesh | 13 | 2443 | October 24, 2023 | |
I'm very stuck and would love some advise | 5 | 735 | October 7, 2019 | |
How fill a loaded STL mesh ( NOT SIMPLE SHAPES LIKE CUBE ETC) with random particles and animate with this geometry bound in three.js | 5 | 4511 | October 27, 2018 |