Exemple #1
0
// Position returns the position of the rigid body's center of gravity.
func (b Body) Position() Vect {
	return cpVect(C.cpBodyGetPos(b.c()))
}
Exemple #2
0
func (b *Body) GetPosition() Vect {
	return Vect{C.cpBodyGetPos(b.CPBody)}
}
Exemple #3
0
func (b *Body) Pos() Vect {
	return Vect(C.cpBodyGetPos(b.body))
}