Stride Forums Archive

[Solved] Ray/Line Tracing

3 posts, 1683 views, 2016-01-05 to 2016-01-05

LennyPenny 2016-01-05 #1

Hey how can I make a line trace from one point to another in the scene and get the object it hit?
Exactly like this http://docs.unity3d.com/ScriptReference/Physics.Raycast.html
I only found the Ray thing in the mathematics namespace, but that isnt what I’m looking for since it well, for mathematics and not inside of the scene.

LennyPenny 2016-01-05 #2

Oh nvm it’s the simulation of the physics object

sinkingsugar 2016-01-05 #3

You could check the Raycasting sample as well for proper usage.