Hi I am hoping someone can give me advice on how to handle jumping. Right now I have it so if the node is higher up you can move straight up as if it was a jump instead of doing Move towards through the node, the problem is that it only works if I am one unit away from the node that is higher up. Does anybody know a good way to do this with the Path being taken into account?
Thanks for the help, been struggling with this one and could really use a pointer.
activeUnit.transform.position = Vector3.MoveTowards(new Vector3(activeUnit.transform.position.x, activeUnit.transform.position.y, activeUnit.transform.position.z), (new Vector3(activeUnit.transform.position.x, newTilePosition.position.y, activeUnit.transform.position.z)), .1f);
if (path != null && activeUnit != null && path[nextPathIdx].position.y > activeUnit.transform.position.y)
jumping = true;