Пример #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
func (b *Body) Vel() Vect {
	return Vect(C.cpBodyGetVel(b.body))
}