Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 140755

A technique for using rays to determine points of intersection. Often used in lighting simulation.

0 votes
1 answer
58 views

Finding the index in a material where a raycast hit

I have a gameobject with a mesh collider. The mesh is simply a flat plane. I raycast to the mesh and I'd like to get the index on the material's basemap where I got a hit. I assumed hit.textureCoord o …
user1999728's user avatar
0 votes
Accepted

Finding the index in a material where a raycast hit

Apparently I misunderstood what hit.textureCoord does. Since the mesh I was dealing with had only 4 vertices and 2 triangles (a simple plane), it can only return (0,0) or (1,1), for each of the two tr …
user1999728's user avatar