Question by
piwi820 · Jul 25, 2020 at 04:53 PM ·
movementisometricortographic
Movement in an isometric camera
Im trying to move a ortographic camera in an isometric way
void Update()
{
if (Input.GetMouseButtonDown(0))
{
TouchStart = Camera.ScreenToWorldPoint(Input.mousePosition);
}
else if (Input.GetMouseButton(0))
{
Vector3 direction = TouchStart - Camera.ScreenToWorldPoint(Input.mousePosition);
Vector3 adjustAngle = new Vector3(direction.x + direction.y, 0, direction.z + direction.y);
transform.position += adjustAngle;
}
}
so i do this to get to move in horizontal and not move in Y direction, the problem is that the movement in the forward direction is slower than moving right and left and i want it to be the same.
Comment