I have created a simple script that instatiates a coconut prefab at the location of a tree prefab. However I’m running into a major issue. The coconut only instatiates at my palm tree pivot point. Which is at the bottom of the trunk. I have searched up and down google for an answer, like how to make my coconut spawn higher up than the pivot point or father out from the trunk but I have found nothing. Here is the code:
using UnityEngine;
using System.Collections;
public class CoconutGen : MonoBehaviour {
public GameObject spawnThis;
// Use this for initialization
void Start () {
Instantiate(spawnThis, transform.position, transform.rotation);
}
// Update is called once per frame
void Update () {
}
}