can someone give me a simple example of code that if the player clicks with the mouse on a mesh the character moves from his postion to the position clicked on by the mouse.
i know it has something to do with camera project but ive not made a game with mouse control before?
i know how to select characters and objects with camera picks but i don't know how to pick a spot on a mesh ?
please keep any examples simple because i rubbish at 3d.
i know it has something to do with camera project but ive not made a game with mouse control before?
i know how to select characters and objects with camera picks but i don't know how to pick a spot on a mesh ?
please keep any examples simple because i rubbish at 3d.