예제 #1
0
파일: body.go 프로젝트: ianremmler/chipmunk
// Position returns the position of the rigid body's center of gravity.
func (b Body) Position() Vect {
	return cpVect(C.cpBodyGetPos(b.c()))
}
예제 #2
0
func (b *Body) GetPosition() Vect {
	return Vect{C.cpBodyGetPos(b.CPBody)}
}
예제 #3
0
파일: chipmunk.go 프로젝트: andrebq/exp
func (b *Body) Pos() Vect {
	return Vect(C.cpBodyGetPos(b.body))
}