It`s a JavaScript.
Instantiate(Object, transform.position, transform.rotation)
How do I fix the Y coordinate?
Probably it has something to do with transform.position and transform.rotation but I can`t figure out what to do.
It`s a JavaScript.
Instantiate(Object, transform.position, transform.rotation)
How do I fix the Y coordinate?
Probably it has something to do with transform.position and transform.rotation but I can`t figure out what to do.
Something like this…
Vector3 p = transform.position;
Instantiate(your_object, new Vector3(p.x, 100, p.z), transform.rotation);
Basically, create your own vector, using the x and z from transform.position
, and your own value for y
.