Example #1
0
func (b *Body) SetPosition(pos Vect) {
	C.cpBodySetPos(b.CPBody, pos.CPVect)
}
Example #2
0
// SetPosition sets the position of the body.
func (b Body) SetPosition(v Vect) {
	C.cpBodySetPos(b.c(), v.c())
}
Example #3
0
// SetPosition sets the position of the body.
func (b Body) SetPosition(pos Vect) {
	C.cpBodySetPos(b.c(), pos.c())
}
Example #4
0
func (b *Body) SetPos(p Vect) {
	C.cpBodySetPos(b.body, C.cpVect(p))
}