示例#1
0
// Velocity returns the velocity of the rigid body's center of gravity.
func (b Body) Velocity() Vect {
	return cpVect(C.cpBodyGetVel(b.c()))
}
示例#2
0
func (b *Body) GetVelocity() Vect {
	return Vect{C.cpBodyGetVel(b.CPBody)}
}
示例#3
0
文件: chipmunk.go 项目: andrebq/exp
func (b *Body) Vel() Vect {
	return Vect(C.cpBodyGetVel(b.body))
}