Working with Terrian

I want to keep track of ambient temperature. The way I’ve thought of doing this is using two terrain objects, one which is my terrain and the other which is my ambient temperature. When the temperature changes I edit the temperature heightmap. I thought about using 2d arrays but its a little fiddly. Would what I’m going about doing be a better idea?

The other thing is how do I select the second terrian as it’s not the active one and ensure that it does not actually ever collide with players?

Heightmaps are 2D arrays. I don’t understand what’s “fiddly” about them. It would be significantly more fiddly to use an entire second terrain just to store another 2D array.

–Eric

What is fiddly is having to ensure that the array is consistant with the terrain that it is sitting on top of and that as the player moves and the terrain in front of them is dynamically loaded that the array values are not accidentally overwritten. That and working with 2d array’s in JS is not exactly perfect.

Although I do conceed that things don’t appear to be setup to use multiple terrains. I’ll have a go with 2d arrays as you suggest.