MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / pickNewTarget

Method pickNewTarget

components/liquid-ether.tsx:371–377  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

369 this.pickNewTarget();
370 }
371 pickNewTarget() {
372 const r = Math.random;
373 this.target.set(
374 (r() * 2 - 1) * (1 - this.margin),
375 (r() * 2 - 1) * (1 - this.margin)
376 );
377 }
378 forceStop() {
379 this.active = false;
380 this.mouse.isAutoActive = false;

Callers 2

constructorMethod · 0.95
updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected