Files

17 lines
530 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.
# Darklord.js — spawnTozSideOrb() (satır 2908)
[← Darklord.js](index.md) · [← Master](../../wiki.md)
```javascript
function spawnTozSideOrb(world, pos, fwdX, fwdZ, rightX, rightZ, side, phase)
{
var sway = Math.cos(phase) * 0.18;
var lift = Math.sin(phase) * 0.62;
var cx = pos.x + rightX * side * TOZ_ORB_DISTANCE + fwdX * sway;
var cy = pos.y + 1.15 + lift;
var cz = pos.z + rightZ * side * TOZ_ORB_DISTANCE + fwdZ * sway;
spawnTozOrb(world, cx, cy, cz, phase, side);
}
```