Beispiel #1
0
// RemoveCollisionHandler unsets a collision handler.
func (s *Space) RemoveCollisionHandler(a CollisionType, b CollisionType) {
	C.cpSpaceRemoveCollisionHandler(s.c(), C.cpCollisionType(a), C.cpCollisionType(b))
}
Beispiel #2
0
// RemoveCollisionHandler unsets a collision handler.
func (s Space) RemoveCollisionHandler(a CollisionType, b CollisionType) {
	colTypes := collisionTypePair{a, b}
	delete(collisionHandlerMap[s], colTypes)
	C.cpSpaceRemoveCollisionHandler(s.c(), C.cpCollisionType(a), C.cpCollisionType(b))
}