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

Method DestroyProxy

CollisionB2DynamicTree.go:282–288  ·  view source on GitHub ↗
(proxyId int)

Source from the content-addressed store, hash-verified

280}
281
282func (tree *B2DynamicTree) DestroyProxy(proxyId int) {
283 B2Assert(0 <= proxyId && proxyId < tree.M_nodeCapacity)
284 B2Assert(tree.M_nodes[proxyId].IsLeaf())
285
286 tree.RemoveLeaf(proxyId)
287 tree.FreeNode(proxyId)
288}
289
290func (tree *B2DynamicTree) MoveProxy(proxyId int, aabb B2AABB, displacement B2Vec2) bool {
291

Callers

nothing calls this directly

Calls 4

RemoveLeafMethod · 0.95
FreeNodeMethod · 0.95
B2AssertFunction · 0.85
IsLeafMethod · 0.80

Tested by

no test coverage detected