- Home /
Using layer mask in raycast
For some reason theres something Im not getting. And Im having trouble setting this up right.
I want the raycast to only cast a ray against layer 12.
This is what I thought I needed to do:
Physics.Raycast(ray_point3_point7, out hit_point7,1000,0 << 11);
Comment
Your answer
Follow this Question
Related Questions
NullReferanceException layerMask script c# to unityscript. 0 Answers
How do I use LayerMask to check collision? 1 Answer
Physics2D, weird layerMask behavior on Linecast, Raycast and OverlapPoint 2 Answers
Using Physics2D.IgnoreLayerCollision and LayerMask from Editor 1 Answer
How to detect if a specific layer is active in the camera's culling mask 0 Answers