Kinda of new to Unity dev but I am long-time iOS developer and I have to say this world is awesome to work in and really make life easy when it comes to 3D.
My question pertains to how to use tags and layers properly. If this is really a simple question and it just requires me to read a tutorial again can you please point me in the right direction.
I am using a script on my main character which I found online
I would like to modify is so that instead of having the target being set to the ground layer it will only move to a specific target that specify in my landscape. I believe the code needs to be modified here somewhere just not sure what though.
void SetTarget(Vector2 screenPos)
Ray ray = _camera.ScreenPointToRay (new Vector3 (screenPos.x, screenPos.y));
int layerMask = 1 << 8; // Ground
if (Physics.Raycast(ray, out hit, Mathf.Infinity, layerMask))
targetPoint = hit.point;
isMovingToTarget = true;
Thanks everyone for the help in advance and I look forward to learn and working with this community!