Class CameraHelper

java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.CameraHelper

public final class CameraHelper extends Object
  • Method Details

    • getCameraFacingAngle

      public static float getCameraFacingAngle(net.minecraft.world.entity.Entity entity, float partialTicks)
      Gets the Y-axis angle, in degrees, that a billboard at the given entity should rotate to face the active camera.
      Parameters:
      entity - The entity position that the billboard is rendered around.
      partialTicks - The current render partial tick value, used to interpolate camera position.
      Returns:
      The camera-facing yaw angle in degrees.