// Free removes a space. func (s Space) Free() { delete(spaceDataMap, s) delete(postStepCallbackMap, s) delete(collisionHandlerMap, s) delete(defaultCollisionHandlerMap, s) C.cpSpaceFree(s.c()) }
// Free removes a space. func (s *Space) Free() { if nil != s { delete(postStepCallbackMap, *s) C.cpSpaceFree(s.c()) } }
func (s *Space) Free() { C.cpSpaceFree(s.CPSpace) s.CPSpace = nil }
func (s *Space) Free() { C.cpSpaceFree(s.s) }