Package gaiasky.scene.entity
Class FocusHit
java.lang.Object
gaiasky.scene.entity.FocusHit
This class contains the methods that implement
IFocus.addHitRay(Vector3d, Vector3d, NaturalCamera, Array)
and IFocus.addHitCoordinate(int, int, int, int, int, NaturalCamera, Array)
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) 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) 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 rayvoid
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) 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) void
addHitRayCelestial
(FocusView view, Vector3d p0, Vector3d p1, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits) void
addHitRayCluster
(FocusView view, Vector3d p0, Vector3d p1, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits) void
addHitRayModel
(FocusView view, Vector3d p0, Vector3d p1, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits) void
addHitRayParticleSet
(FocusView view, Vector3d p0, Vector3d p1, NaturalCamera camera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> hits) protected boolean
checkClickDistance
(int screenX, int screenY, com.badlogic.gdx.math.Vector3 pos, NaturalCamera camera, com.badlogic.gdx.graphics.PerspectiveCamera pcamera, double pixelSize)
-
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)
-