The following is the API doc for the “raycast” method for 2D objects:
public raycast (p1 : IVec2Like, p2 : IVec2Like, type ?: ERaycast2DType, mask ?: number)
The documentation doesn’t say anything about “mask” and how to use it. Can I use this mask parameter to ignore certain physics groups during the raycast process?
Thanks