Question by
SpyChar · Sep 12, 2015 at 08:53 PM ·
raycastraycasthithit.point
Getting a hit.point from a limited Raycast
I want to set a position of an object to raycast hit.point but I have set a distance limit for it. Is there a simple way to still get a hit.point of a ray when it reaches it's limit? I mean the position where ray ends, even if it doesn't hit anything.
Comment
Best Answer
Answer by hexagonius · Sep 12, 2015 at 09:15 PM
if you know the rays length:
ray.origin + ray.direction * lenght
Well, I guess my brain has to be in the energy saving mode today xD. Thanks
Your answer
Follow this Question
Related Questions
Ray Reflection system not work correctly. 0 Answers
Raycast Hit suddently stopped working 0 Answers
RayCast(Ray ray, out RaycastHit hitInfo, float maxDistance, int layerMask) question 0 Answers
Raycast shooting, child collider call and detection 0 Answers
Raycast not detecting a gameobject. 1 Answer