Example #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()))
}
Example #2
0
func (b *Body) GetPosition() Vect {
	return Vect{C.cpBodyGetPos(b.CPBody)}
}
Example #3
0
func (b *Body) Pos() Vect {
	return Vect(C.cpBodyGetPos(b.body))
}