- Home /
Question by
Ravart · Jul 28, 2012 at 06:02 PM ·
rayscreenpointtoray
Ray. Find Point without Physic Collision!
Hi mates!
Im using ScreenPointToRay to get a hit on a gameObject. Now I want to move and drag it around the world, but i dont want to create a floor geometry, just to catch Physic.RayCast.
All I need is the point, where Camera.main.ScreenPointToRay hits the point Vector3 (x,0,z) and return x and z! Hope someone can help.
Thx
Comment
Your answer
Follow this Question
Related Questions
Using Camera screen point to ray for look rotation problem... 1 Answer
Offseting a Ray from camera before casting 1 Answer
Ray not shooting where I click 2 Answers
Create a ray from camera to a Vector3 point 2 Answers
Ray Travels Incredibly Short Distance -- Unity 5.5.0f3 -- Windows 8.1 -- Solved Sort-of 1 Answer