MCPcopy Create free account
hub / github.com/ByteArena/box2d / Destroy

Method Destroy

DynamicsB2World.go:152–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150}
151
152func (world *B2World) Destroy() {
153
154 // Some shapes allocate using b2Alloc.
155 b := world.M_bodyList
156 for b != nil {
157 bNext := b.M_next
158
159 f := b.M_fixtureList
160 for f != nil {
161 fNext := f.M_next
162 f.M_proxyCount = 0
163 f.Destroy()
164 f = fNext
165 }
166
167 b = bNext
168 }
169}
170
171func (world *B2World) SetDestructionListener(listener B2DestructionListenerInterface) {
172 world.M_destructionListener = listener

Callers

nothing calls this directly

Calls 1

DestroyMethod · 0.65

Tested by

no test coverage detected