Mining Gadgets

Mining Gadgets

33M Downloads

Rendering issue when running and shooting laser

Opened this issue · 4 comments

commented

Just a funny little issue I stumbled upon :)
2019-11-21_02 01 37
(notice how the laser doesn't quite line up with the tip of the gadget)

commented

That’s caused by the fov change. Same if you adjust the fov slider in options. I need to find a way to detect and correct that :)

commented

things I'd think of:

  1. be lazy and make laser particle bursts instead of a continuous beam
  2. store the FOV as a variable and use the variable to translate the laser to the correct position (I believe you can find the value by looking at the code for the speed potion or running in general)
commented

@Direwolf20-MC There is a player.getFovModifier which will return a 1.x value for different types of modifiers. Upon this you can also get the players Fov from Minecraft.getInstance().gameSettings.fov

commented

Will be fixed on 1.15 (and 1.14 if I backport)