I'm currently trying to figure out a smart way to let the player interact with the 3d world's objects. These objects would probably be stuff like say, containers, lights, npcs. The idea is that the player can use these objects, pick them up, talk to them or combine other objects(from the inventory) with them. Normal adventure game stuff, but I'm not sure how should I aproach this.
Currebtly I'm using mouse to pick them, but I don't know how to "tell" the object what I want it to do. Maybe I need to add this type a field, which tells it what the player is after and how to react, but how would I access that, since It seems I'm actually picking just the mesh of this object?
Currebtly I'm using mouse to pick them, but I don't know how to "tell" the object what I want it to do. Maybe I need to add this type a field, which tells it what the player is after and how to react, but how would I access that, since It seems I'm actually picking just the mesh of this object?