- Home /
The question is answered, right answer was accepted
Can be terrainData.setHeights' values negative?
Hi,
Well I'm asking that because I want to know that for make negative relief like rivers, lakes, seas and oceans...
I think the way to accomplish that would be to raise the height of the entire terrain, and then just lower certain parts. I can't quite remember but I think from the starting height you can only raise it.
Answer by bompi88 · Nov 28, 2013 at 10:00 PM
No I think not. Negative values won't affect the height map, I think. Just set a baseline at for example 0.5 and all values below this value could be a river, a lake etc.
Thanks, I made it with a simple edit on SetHeight value... I add a float called BaseLine with 0.1 and it works...
Follow this Question
Related Questions
object going sideways when a negative x value is given. 1 Answer
rigidbody.angularVelocity Negative Value? 1 Answer
Unity freezes when calling terrainData.SetHeights 2 Answers
How can I programmatically stretch a Terrain? 1 Answer
Wrong positon 0 Answers