예제 #1
0
// TotalImpulseWithFriction returns the total impulse including the friction that
// was applied by this arbiter. This function should only be called from a post-solve,
// post-step or body.EachArbiter callback.
func (a Arbiter) TotalImpulseWithFriction() Vect {
	return cpVect(C.cpArbiterTotalImpulseWithFriction(a.c()))
}
예제 #2
0
func (a *Arbiter) TotalImpulseWithFriction() Vect {
	return Vect{C.cpArbiterTotalImpulseWithFriction(a.CPArbiter)}
}