Hello everyone,
I am creating a mob spawner, and I am trying to ensure that the AI don’t appear through the ground when they spawn.
So I am using a raycast from their spawn position, 10 metres above it, casting downwards.
I then get the:
hitInfo.transform.position()
and it outputs the terrain’s root transform. How do I get the ray’s actual ‘hit’ position?