Hi,
I am new to this community! I downloaded Unity 2.6 since it has been free and I am making a game on firefighters. ![]()
I have the following code to instantiate fire particles on a terrain:
var firePrefab : Transform;
function Start () {
for (var z = 0; z < 2000; z+=100) {
for (var x = 0; x < 2000; x+=100) {
var firePrefab = Instantiate(firePrefab, Vector3 (x, 0, z), Quaternion.identity);
}
}
}
function Update () {
}
it works but it places all particles at y=0. What I want is that it detects the terrain altitude and then “drops” the particles on it… Is this possible?
P.S. is it possible to make a randm instantiation instead of placing them on a grid?
Thanks in advance!