Beispiel #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())
}
Beispiel #2
0
// Free removes a space.
func (s *Space) Free() {
	if nil != s {
		delete(postStepCallbackMap, *s)
		C.cpSpaceFree(s.c())
	}
}
Beispiel #3
0
func (s *Space) Free() {
	C.cpSpaceFree(s.CPSpace)
	s.CPSpace = nil
}
Beispiel #4
0
func (s *Space) Free() {
	C.cpSpaceFree(s.s)
}