Files

20 lines
600 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# bariskeser_skills.js — cast_disc() (satır 1787)
[← bariskeser_skills.js](index.md) · [← Master](../../wiki.md)
Parça 2/2 · [önceki](cast_disc.md)
```javascript
var dx = bp.x - hx, dy = (bp.y + 0.9) - hy, dz = bp.z - hz, dn = Math.sqrt(dx * dx + dy * dy + dz * dz) || 0.01;
dir = { x: dx / dn, y: dy / dn, z: dz / dn };
}
break;
}
t++;
if (bounces <= 0 || t > 60) { boom(ww, hx, hy, hz, 1.5); return; }
ctx.scheduleScript(1, loop);
}
c.scheduleScript(1, loop);
}
```