Exemple #1
0
// TotalKE returns the amount of energy lost in a collision including static,
// but not dynamic friction. This function should only be called from a post-solve,
// post-step or body.EachArbiter callback.
func (a Arbiter) TotalKE() float64 {
	return float64(C.cpArbiterTotalKE(a.c()))
}
Exemple #2
0
func (a *Arbiter) TotalKineticEnergy() float64 {
	return float64(C.cpArbiterTotalKE(a.CPArbiter))
}