MCPcopy Index your code
hub / github.com/piqnt/planck.js / destroyProxy

Function destroyProxy

example/DynamicTreeTest.ts:244–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242}
243
244function destroyProxy() {
245 for (let i = 0; i < actors.length; ++i) {
246 const j = (Math.random() * actors.length) | 0;
247 const actor = actors[j];
248 if (actor.proxyId != null) {
249 tree.destroyProxy(actor.proxyId);
250 actor.proxyId = null;
251 return;
252 }
253 }
254}
255
256function moveProxy() {
257 for (let i = 0; i < actors.length; ++i) {

Callers 2

DynamicTreeTest.tsFile · 0.85
runActionFunction · 0.85

Calls 2

randomMethod · 0.80
destroyProxyMethod · 0.45

Tested by

no test coverage detected