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.
if you know the rays length:
ray.origin + ray.direction * lenght