Hello, hope you are feeling well! Now that there is a new method of doing Rays what is the point of having the Ray userdata? I know roblox can’t remove it cuz many games will stop working properly. Is there any use still for Ray?
There’s a couple of benefits here.
They added a new ability to define a CollisionGroup in your RayParams
object that will be ignored by the ray, and also, you don’t have to create new RayParams
each time you raycast, you can use the same one. And if desired, you can update its fields to what you want.
You can read more about the fields of a RayParams
object here:
1 Like
Does this means the Global Ray is not useful anymore?
The old raycast methods have been deprecated (not recommended for new work), but you can still use them.
1 Like