Adding mesh collider though script

In a fork: https://playcanvas.com/editor/scene/1099303

I’ve changed it to use the asset id for the collision and rendered the model so you can see where the collision is.

I also added console out put (ha) when something enters the trigger which you can see working here:

Hopefully, that will get you going again.

1 Like

Big up for that @yaustar , you cant imagine how much will that help in further development, thank you so much! :slight_smile:

Hello a little question too, can colliders have the same animation as objects have ?

No, they have to be a static mesh. You can move it and rotate via the entity it’s connected to but you can’t animate the meshes themselves