Ejemplo n.º 1
0
func (b *Body) ApplyImpulse(impulse Vect, offset Vect) {
	C.cpBodyApplyImpulse(b.CPBody, impulse.CPVect, offset.CPVect)
}
Ejemplo n.º 2
0
// ApplyImpulse applies an impulse (in world coordinates) to the body at a point relative
// to the center of gravity (also in world coordinates).
func (b Body) ApplyImpulse(j, r Vect) {
	C.cpBodyApplyImpulse(b.c(), j.c(), r.c())
}