Hi,
this is more of a design question than regular question.
I have 3D game, camera is diablo style, top-down. Now, lets say item drops, its small amulet or wood or ring. The player will have problem picking it up with the mouse. So you need to scale up the item`s collider to make it easier to register mouse over event.
**The problem is, with NPC`s for example, is that many objects (trees, NPC) need two colliders. One for real world collision, another for mouse collision.**
- My question is: What is the best approach to do it?
1. I can try putting all objects into Mouse Detection layer, which ignores all other collision but mouse. And put real world collision box into its children. But then I have ofc, I have no events in main object script when object collides with something.
2. Second this is put collider onto object itself, but then another separate child object would have to handle mouse detection collision, put into separate layer which is really a chore.
I know this is kinda hard question and a lot of text, but yeah, if anyone has experience with it, please share your advice. Thanks!
↧