how can I change a physics body type on collision

I need to change the body type from “static” to “dynamic” in my onCollision function.

does anyone know how to do this?

thanks!

You could try the ‘bodyType’ property

e.g. objectName.bodyType = “dynamic”

I tried it and it didn’t work AND you have some GREAT videos!  I watched all 14!

oh I found a function I put that in and it worked. Thanks! haha and make more videos!

You could try the ‘bodyType’ property

e.g. objectName.bodyType = “dynamic”

I tried it and it didn’t work AND you have some GREAT videos!  I watched all 14!

oh I found a function I put that in and it worked. Thanks! haha and make more videos!