Uses of Class
com.bombinggames.wurfelengine.core.map.Intersection
-
Packages that use Intersection Package Description com.bombinggames.wurfelengine.core com.bombinggames.wurfelengine.core.map -
-
Uses of Intersection in com.bombinggames.wurfelengine.core
Methods in com.bombinggames.wurfelengine.core that return Intersection Modifier and Type Method Description Intersection
GameView. screenToGame(int x, int y)
Returns the approximated game position belonging to a point on the screen. -
Uses of Intersection in com.bombinggames.wurfelengine.core.map
Methods in com.bombinggames.wurfelengine.core.map that return Intersection Modifier and Type Method Description static Intersection
Intersection. intersect(Coordinate target, Point p, com.badlogic.gdx.math.Vector3 dir)
performs a line-box intersection.
The result are outside the coordiante grid field, so they are forced in it.Intersection
Point. raycast(com.badlogic.gdx.math.Vector3 dir, float maxDistance, RenderStorage rs, java.util.function.Predicate<java.lang.Byte> hitCondition)
Trace a ray through the map until ray hits non air block.
Does not work properly with the staggered map but is quite fast.Intersection
Point. rayMarching(com.badlogic.gdx.math.Vector3 dir, float maxDistance, RenderStorage rS, java.util.function.Predicate<java.lang.Byte> hitCondition)
Sends a ray by moving a coordinate though the map.
-