That’s another error @smokys. Double check what you are doing. The last three lines are outside the for loop.
yup i tried to fix, and put those lines inside the loop but i tried to output something from there and it lookts like it ignores the onCollisionStart or the loop
Yes because it has to be result.other
instead of just other
.
It was working before even without result, anyway i tried to put result in and still not it
I will look at your project when I have some time.
I took a look and I see you mix up the methods of triggers and colliders. You use the initialize of a trigger and the rest of your code of a collider. Check the manual to make sure you’re doing it right.
https://developer.playcanvas.com/en/tutorials/collision-and-triggers