I want to make it so that when I touch fire, I die/ragdoll. But I don’t know how to do that on contact
You can use triggers to detect contact with a world object/zone. Check this tutorial:
https://developer.playcanvas.com/en/tutorials/collision-and-triggers/