示例#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)
}
示例#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)
}