How would I change the rigid body type with a script
Hello @Mason_Rocchio,
Yes, of course you can by using the type property of the RigidbodyComponent:
https://developer.playcanvas.com/api/pc.RigidBodyComponent.html#type
You can use it like this:
this.entity.rigidbody.type = pc.BODYTYPE_DYNAMIC;
2 Likes