Esempio n. 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()))
}
Esempio n. 2
0
func (b *Body) GetVelocity() Vect {
	return Vect{C.cpBodyGetVel(b.CPBody)}
}
Esempio n. 3
0
func (b *Body) Vel() Vect {
	return Vect(C.cpBodyGetVel(b.body))
}