Roblox's Built-In 3D raycast vs Self-Implemented 2D raycast

I have a quick question related to raycasting.

Would a self-implemented 2D raycast module be faster than Roblox’s built-in worldroot:Raycast() ?

I don’t need its 3D functionality, so I’m wondering if I should get a 2D raycast module instead, and would such module be faster than the one Roblox provides?

3 Likes

Honestly, it depends on the module itself, and how optimized it is. Yet, thinking about it critically and an educated guess would say yes it is faster.

1 Like