Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello, I am creating a game where when you click on an object, it deletes it. but in the process of this, it deletes all the objects behind it as well. how can i fix this? thanks |
||||
|
Emit rays from the mouse。 |
||||
|
funnymuffler472 wrote: Hello, I am creating a game where when you click on an object, it deletes it. but in the process of this, it deletes all the objects behind it as well. how can i fix this? thanks You could create an 'action' extension to select only the current node and javascript the delete stuff in their also.. This might be be able to be added into the 'on highlight' functionality also if you don't want to create an extension. You can add a variable to detect if you are within a certain range also to ignore far way objects. |
|