Questions tagged [raycasting]

A rendering technique to create a 3D perspective in a 2D map

1193 questions
-2
votes
1 answer

Determine if a point is within a large number of polygons

I'm aware of a ray casting methodology, however, this doesn't work for situated points along vertices and it only tests for the inclusion of a point inside of one polygon. Is there a better way to do this other than just iterating the ray casting…
-2
votes
1 answer

Three.js - Collision by raycasting with a rotated origin mesh

Hello I try to control a mesh, he can turn and moove relative to its rotation by mesh.translate. But for collisions, i cant find how to raycast relative to its rotation. If the origin mesh is not rotated or if I moove it with mesh.position.x++, it…
Getzel
  • 65
  • 2
  • 13
-3
votes
1 answer

Raycast on a cube grid?

I am currently writing a Minecraft clone in Unity as my pet project, and I'm trying to implement raycasts for it, so that I can know which block the player looks at (I will use raycasts for other purposes too). The world of the game is a 3D grid of…
-3
votes
1 answer

NullReferenceException when raycasting in unity

I am trying to use a raycast that writes the name of the object that hits and the position and when shooting the ray it gives a null reference exception. It happens at this line Ray ray = cam.ScreenPointToRay(Input.mousePosition); Here is the…
-4
votes
1 answer

Can someone please explain the Ray-casting algorithm for point in polygon i.e. containment check?

Consider a polygon with two loops i.e. Outer loop& inner loop as shown in the images attached with this question(One can think of an English letter "e" for example). Can someone please explain how exactly the Ray-casting algorithm will work in such…
Shreekant
  • 297
  • 2
  • 3
  • 10
1 2 3
79
80