Esempio n. 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))
}
Esempio n. 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))
}