Exemple #1
0
// Free removes a body.
func (b Body) Free() {
	delete(bodyDataMap, b)
	C.cpBodyFree(b.c())
}
Exemple #2
0
func (b *Body) Free() {
	delete(bodyLookup, b.CPBody)
	C.cpBodyFree(b.CPBody)
	b.CPBody = nil
}
Exemple #3
0
func (b *Body) Free() {
	C.cpBodyFree(b.body)
}