Esempio n. 1
0
// EachBody calls a callback function on each body in the space.
func (s *Space) EachBody(iter func(Body)) {
	p := Pointer(&iter)
	C.space_each_body(s.c(), p)
}
Esempio n. 2
0
// EachBody calls a callback function on each body in the space.
func (s Space) EachBody(iter func(Body)) {
	p := unsafe.Pointer(&iter)
	C.space_each_body(s.c(), p)
}