Skip to content

Commit

Permalink
Improved earthBullet direction
Browse files Browse the repository at this point in the history
  • Loading branch information
Melchizedek6809 committed Jan 20, 2025
1 parent 77ca3d9 commit 43f8730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/runes/earthBullet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class EarthBullet extends Rune {
const dz = e.z - this.bulletEntity.z;
const d = Math.sqrt(dx * dx + dy * dy + dz * dz);
const vel = Math.max(0.1, Math.min(0.5, 1 - d * 0.1));
const [vx, vy, vz] = e.direction(0, 0, -2, vel);
const [vx, vy, vz] = e.direction(0, 0.2, -2, vel);
this.bulletEntity.shotX = this.bulletEntity.vx = vx;
this.bulletEntity.shotY = this.bulletEntity.vy = vy;
this.bulletEntity.shotZ = this.bulletEntity.vz = vz;
Expand Down

0 comments on commit 43f8730

Please sign in to comment.