Class FocusHit

java.lang.Object
gaiasky.scene.entity.FocusHit

public class FocusHit extends Object
  • Constructor Details

    • FocusHit

      public FocusHit()
  • Method Details

    • checkClickDistance

      protected boolean checkClickDistance(int screenX, int screenY, com.badlogic.gdx.math.Vector3 pos, NaturalCamera camera, com.badlogic.gdx.graphics.PerspectiveCamera pcamera, double pixelSize)
    • addHitCoordinateCelestial

      public void addHitCoordinateCelestial(FocusView view, int screenX, int screenY, int w, int h, int pixelDist, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits)
    • addHitRayCelestial

      public void addHitRayCelestial(FocusView view, Vector3d p0, Vector3d p1, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits)
    • addHitCoordinateModel

      public void addHitCoordinateModel(FocusView view, int screenX, int screenY, int w, int h, int pixelDist, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits)
      If we render the model, we set up a sphere at the object's position with its radius and check for intersections with the ray
    • addHitRayModel

      public void addHitRayModel(FocusView view, Vector3d p0, Vector3d p1, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits)
    • addHitCoordinateStar

      public void addHitCoordinateStar(FocusView view, int screenX, int screenY, int w, int h, int pixelDist, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits)
    • addHitCoordinateParticleSet

      public void addHitCoordinateParticleSet(FocusView view, int screenX, int screenY, int w, int h, int pixelDist, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits)
    • addHitRayParticleSet

      public void addHitRayParticleSet(FocusView view, Vector3d p0, Vector3d p1, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits)
    • addHitCoordinateCluster

      public void addHitCoordinateCluster(FocusView view, int screenX, int screenY, int w, int h, int pixelDist, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits)
    • addHitRayCluster

      public void addHitRayCluster(FocusView view, Vector3d p0, Vector3d p1, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits)