I am wanting to know if there is a way to pick a spot on a terrain and determine if it is flat, steep, etc in game?
When you do a trace (single line trace by channel) and break the hit result, it gives you the normal vector to the surface that was hit. Then it’s up to you to figure out the math on how to determine if it’s steep or not. It should be pretty simple since the normal vector is a unit vector, a flat surface should read (x=0,y=0,z=1) and then I guess based on how z is between 1 and 0 you can discriminate the steepness.
Figure out how you’re going to implement your trace location and then take the normal vector and put it to a print string to see what values you get.
Oh I’m talking about doing this in blueprint, don’t know c++.
thanks for the info. I will try it out