Patent attributes
Elements in an artificial reality environment (e.g., objects or volumes) can be assigned different ray casting rules. In response to detecting a corresponding trigger, such as the user entering the volume or interacting with the object, the ray casting rules associated with that element can be implemented. Implementing the ray casting rules can control aspects of the ray such as the ray's shape, size, effects of the ray, where a ray originates, whether the ray is directed along a particular plane, or how rays are controlled. In some cases, an artificial reality system can cast multiple rays at the same time, which are controlled by the same feature of a user. Using priority rules (e.g., weighting factors, hierarchies, filters, etc.), the artificial reality system can determine which ray is primary, allowing the user to use the primary ray to interact with elements.