- Home /
Question by
mustang4484 · Jun 16, 2020 at 04:00 PM ·
move an objectclick objects
RTS click and movement with multiple objects
Hi guys What's the best solution for select objects and click to destination for move it ? For example i have four object, and i can select it with mouse and after select it, the next click is a point on map (where the object change position). My problem is not move from point A to B, but how optimize the code for click and move some gameobjects. It's better attack the code at camera with raycast and if the object is cliccable i can move it or attack the code to every object and to do only check if cliccable with camera raycast?
The style is similar to AoE or Wow.
Thank you
Comment