Weng
11-19-2008, 06:36 PM
I am developing a multiplayer point and click game.
How do I correctly identify the scene object which is being clicked on?
Currently, I use ray picking to identify the object being clicked. The first object which is intersected by the picking ray is taken to be the object which is clicked.
However, the problem is that if there is a player character standing in front of that object, the result will be inaccurate as the ray intersects the character first even if the object is clicked.
Since the picking ray could intersect through several scene objects, how do I identify which is the actual scene object which is being clicked?
Or is there another method of identifying clicked objects? :huh:
How do I correctly identify the scene object which is being clicked on?
Currently, I use ray picking to identify the object being clicked. The first object which is intersected by the picking ray is taken to be the object which is clicked.
However, the problem is that if there is a player character standing in front of that object, the result will be inaccurate as the ray intersects the character first even if the object is clicked.
Since the picking ray could intersect through several scene objects, how do I identify which is the actual scene object which is being clicked?
Or is there another method of identifying clicked objects? :huh: