Fish problem

Hi. I`m trying create script with spawn fish. It shoud be spawn on front of the ship way on the see. My problem is with this position. When ship is twisting, axis stay the same so if i write to spawn fish for example ship.transform.position.x + 30, if ship twist it will spawn next to ship not in front of it. Is any way to get private axis not in world way only in local?

Try:

Transform spawner = GetComponent<Transform>();
float distance = 1.0f;

Vector3 spawnPosition = spawner.position + spawner.forward * distance;

Great that works. My big mistake was that i change prefab position after instantiate, not befor it :stuck_out_tongue: Great thx!