コード例 #1
0
ファイル: arbiter.go プロジェクト: ianremmler/chipmunk
// TotalImpulse returns the total impulse 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) TotalImpulse() Vect {
	return cpVect(C.cpArbiterTotalImpulse(a.c()))
}
コード例 #2
0
ファイル: arbiter.go プロジェクト: paulcoyle/gochipmunk
func (a *Arbiter) TotalImpulse() Vect {
	return Vect{C.cpArbiterTotalImpulse(a.CPArbiter)}
}