Example #1
0
func (b *Body) ApplyForce(force Vect, offset Vect) {
	C.cpBodyApplyForce(b.CPBody, force.CPVect, offset.CPVect)
}
Example #2
0
// ApplyForce applies a force (in world coordinates) to the body at a point relative
// to the center of gravity (also in world coordinates).
func (b Body) ApplyForce(f, r Vect) {
	C.cpBodyApplyForce(b.c(), f.c(), r.c())
}