Quantcast
Channel: Answers for "Easy question: 3D MASK or equvilient?"
Browsing all 4 articles
Browse latest View live

Answer by m50

you can make a collider around the trader, and then on every time hes in the trigger (make the collider a trigger) using OnTrigger() check if the tag is "Trader" and then if he presses E (or w/e...

View Article



Answer by Ashkan_gc

just to make the m50's answer easier to understand. you can use Physics.Raycast to shoot a ray in a direction and see if it collides with anything then based on the name or tag of the other GameObject...

View Article

Answer by m50

you can make a collider around the trader, and then on every time hes in the trigger (make the collider a trigger) using OnTrigger() check if the tag is "Trader" and then if he presses E (or w/e...

View Article

Answer by Ashkan_gc

just to make the m50's answer easier to understand. you can use Physics.Raycast to shoot a ray in a direction and see if it collides with anything then based on the name or tag of the other GameObject...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images