示例#1
0
func (b *Body) SetPosition(pos Vect) {
	C.cpBodySetPos(b.CPBody, pos.CPVect)
}
示例#2
0
// SetPosition sets the position of the body.
func (b Body) SetPosition(v Vect) {
	C.cpBodySetPos(b.c(), v.c())
}
示例#3
0
// SetPosition sets the position of the body.
func (b Body) SetPosition(pos Vect) {
	C.cpBodySetPos(b.c(), pos.c())
}
示例#4
0
文件: chipmunk.go 项目: andrebq/exp
func (b *Body) SetPos(p Vect) {
	C.cpBodySetPos(b.body, C.cpVect(p))
}