How to set collision of text mesh to mesh using code?

Using text-mesh How to create 3D Text Meshes - PlayCanvas Office Hours #12 - YouTube, how would you create a mesh collision?

I tried test.js ( but that does not work.

Any ideas?

You will have to look at the code that generates the text mesh instance and create a pc.Model from it so it can be used for a collision mesh shape

I’m afraid I don’t have the bandwidth to do an example of this unfortunately.

I’ve started this here:

It’s not quite working though as the collision is not in the right place as you can see here