I have physics bodies in my game that are set to “kinematic” and isSensor = true. These bodies are only used as animations and do NOT affect the game play.
My question is is there a way to turn off the collision detection of dynamic objects in the game on these objects, to save resources. Currently I have an if statement called by a collision event listener that reads
if myBody.collideAble == true then … end
the animation object parameters read myBody.collideAble = false
The fact that I even have to filter this at the start of the function though I figure is a waste of resources.
Thanks!