Forked and edited project:
https://playcanvas.com/editor/scene/1051938
Clean project with Shape Cast implemented: (With the error)
https://playcanvas.com/editor/scene/1054155
I forked your project and it worked fine! Hats off and thanks for the addition!
But I encounterd a problem when I implemented it into an existing project.
I cannot link the original project because that is currently under NDA.
But I have made a new clean project with the Shape Cast implemented to showcase the error.
[ammo.wasm.js?id=39880806&branchId=f821a1b4-92cc-4a5e-a0e6-60ddeb1a94e4&t=5f1ca9b26b6b35810ab6da57160924cf:75]: Uncaught TypeError: Cannot read property 'apply' of undefined
TypeError: Cannot read property 'apply' of undefined
at b._emscripten_bind_btVector3_btVector3_0 (https://launch.playcanvas.com/api/assets/files/Ammo/ammo.wasm.js?id=39880806&branchId=f821a1b4-92cc-4a5e-a0e6-60ddeb1a94e4&t=5f1ca9b26b6b35810ab6da57160924cf:75:73)
at new p (https://launch.playcanvas.com/api/assets/files/Ammo/ammo.wasm.js?id=39880806&branchId=f821a1b4-92cc-4a5e-a0e6-60ddeb1a94e4&t=5f1ca9b26b6b35810ab6da57160924cf:500:137)
at https://launch.playcanvas.com/api/assets/files/convex-cast.js?id=39880631&branchId=f821a1b4-92cc-4a5e-a0e6-60ddeb1a94e4:28:69
at https://launch.playcanvas.com/api/assets/files/convex-cast.js?id=39880631&branchId=f821a1b4-92cc-4a5e-a0e6-60ddeb1a94e4:247:3
And I encounterd this error my original game project:
[ammo.wasm.js?id=39875743&branchId=eabadd1b-ade9-47ce-88c7-1b55ed37c503&t=5f1ca9b26b6b35810ab6da57160924cf:500]: Uncaught TypeError: Xd is not a function
TypeError: Xd is not a function
at new p (https://launch.playcanvas.com/api/assets/files/Ammo/ammo.wasm.js?id=39875743&branchId=eabadd1b-ade9-47ce-88c7-1b55ed37c503&t=5f1ca9b26b6b35810ab6da57160924cf:500:137)
at https://launch.playcanvas.com/api/assets/files/scripts/bekhoUtils/extensions.js?id=38035335&branchId=eabadd1b-ade9-47ce-88c7-1b55ed37c503:2:24
at https://launch.playcanvas.com/api/assets/files/scripts/bekhoUtils/extensions.js?id=38035335&branchId=eabadd1b-ade9-47ce-88c7-1b55ed37c503:35:3
These errors came up when I pressed the “Import Ammo” button in the project settings and copied the ammo files from the Shape Cast project, then overwrited the Ammo files in my original game project.
You do refer to a “rigidbody-extensions.js” file, is that required for the project to run?
I cannot find it anywhere in the example project!
Hopefully explained the problem in an understandable way (This is my first ever post on a forum)
There is time pressure behind it so I hope to hear from you soon!