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