예제 #1
0
파일: chipmunk.go 프로젝트: andrebq/exp
func (s *Space) SetGravity(g Vect) {
	C.cpSpaceSetGravity(s.s, C.cpVect(g))
}
예제 #2
0
// SetGravity sets the gravity to pass to rigid bodies when integrating velocity.
func (s *Space) SetGravity(g Vect) {
	C.cpSpaceSetGravity(s.c(), g.c())
}
예제 #3
0
// 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)})
}