func (s *Space) SetGravity(g Vect) { C.cpSpaceSetGravity(s.s, C.cpVect(g)) }
// SetGravity sets the gravity to pass to rigid bodies when integrating velocity. func (s *Space) SetGravity(g Vect) { C.cpSpaceSetGravity(s.c(), g.c()) }
// Set the gravity to pass to rigid bodies when integrating velocity. func (s *Space) SetGravity(x float64, y float64) { C.cpSpaceSetGravity(s.ptr, C.cpVect{C.cpFloat(x), C.cpFloat(y)}) }