Class: Terrain
Lua
C++
Edit

Terrain::GetNormal

This method gets the terrain normal at the specified coordinate or 3D position.

Syntax

Parameter Description
coord, (tx, ty) terrain coordinate
position, (x, y, z) position in global space

Returns

Returns the terrain normal at the specified coordinate or the interpolated normal at the specified position in global space.

Copyright © 2024 Ultra Software.
All rights reserved.