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