0

I know that Cocos has something called debugDraw that outlines your physics bodies. This is really helpful. Is there something similar offered in Xcode or Swift?

Can't seem to find anything. But I'd like to make sure my physics bodies are the proper sizes because they currently seem to be a bit bigger than they should be.

Thanks!

Alan Scarpa
  • 3,352
  • 4
  • 26
  • 48

1 Answers1

1

Well, I was 1 more Google search short before I posted my question...Found the answer!

How to draw SKNode PhysicsBody for debugging?

Add this line "skView.showsPhysics = YES;" after "skView.showsFPS = YES;"

Community
  • 1
  • 1
Alan Scarpa
  • 3,352
  • 4
  • 26
  • 48