All of the Ray casting based documentation needs updated. I’ve been trying to utilize ray casting for a month or so now and I’m having the hardest time because I have to search all over the place to find info on return variables, usage examples, parameters, etc… There is also confusion as to what instance these functions belong to: worldroot or workspace.
From what I have found digging into this topic…
the part hit
the part position
the part lookVector
the part material
I haven’t found much more info than that yet, hope this helps someone… If any other information came along I would love to see more myself. End Edit
I hope this is a better, more acceptable post. Thank you @Mi_sst
I was trying to look into this and ran into the same bizarre problem.@IvanEOD tysm for the return tuple information.
I haven’t been keeping up with Roblox updates recently, so this might be common knowledge, but weren’t there also more Raycasting functions under Workspace such as one with a whitelist and one with an ignore list?
We’ve identified the problem that lead these pages to be blank: this was caused by an update wherein API members were moved from a class to an abstract superclass (Workspace now inherits from the abstract WorldRoot). We use an automated tool that imports the current members of the Roblox API, but it doesn’t recognize “movements” of API members, only additions and removals. In other words, it noticed the removal of Workspace:FindPartOnRay and the addition of WorldRoot:FindPartOnRay, but it was not designed to migrate content. This is why the information disappeared from the DevHub.
Changes like this (API member movements) happen extremely rarely. This didn’t change any existing behaviors, as you could still use Workpsace:FindPartOnRay the same way - so that’s why this got put under low priority. We apologize for the inconvenience. The content will be migrated by hand from the previous pages this week.