Questions tagged [ray]
The ray tag has no usage guidance.
5
questions
0
votes
2
answers
99
views
Transforming 3d point for depth testing
I have a ray and its direction is (o,d). Multiply it by the model matrix to rotate the model.
...
1
vote
1
answer
94
views
how to offset a rays starting point
So the problem i am working with here is about rays piercing objects. Basically, a ray is created, it hits a piece of armor, and then some math happens, if it is able to pierce the armor, then I need ...
0
votes
1
answer
4k
views
How to detect if hit by raycast from object with name/tag
INTRODUCTION:
In unity, I want to make a dynamic, object use system. Where the main player camera shoots a raycast when left mouse button is clicked and if an object that can be used for example a ...
0
votes
1
answer
58
views
How to find if a Ray intersects a Triangle Clockwise or Counter Clockwise
I have a Triangle with an intersecting Ray.
How can I find out if the triangle's vertices are in a clockwise or counter clockwise rotation order with respect to the Ray?
0
votes
1
answer
137
views
Ray vs AABB (2D) reporting hits
I've been working a 2D ray versus AABB implementation. I worked it out on paper, then read about a popular "branchless" algorithm. I decied to try the branchless one, but it gives me ...