Can Layer Masks Achieve This Effect
- by Julian
If you look at the image below you will see the player surrounded by a dotted yellow box.
The dotted yellow box is also part of the player and represented a portion of the player being masked from both rendering and affected by physics. My question is if layer masks in Unity can achieve the following effect.
-In Area 1, the red box/animations of the player are visible and the rigidbody of this shape is affected by all Physics.
-Any portion of the player that enters Area 2 makes the larger yellow box within the area become visible (and affected by physics) and vice versa for any portion of the smaller red box that enters.
-This can persist when both entering and leaving either area from any direction.
Thank you for any help!