Class: Terrain
Lua
C++
Edit

Terrain:GetNormal

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

Syntax

function Terrain:GetNormal(tx, ty: number): Vec3
function Terrain:GetNormal(coord: iVec2): Vec3
function Terrain:GetNormal(coord: Vec3): Vec3
function Terrain:GetNormal(x, y, z: number): Vec3

Parameters

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.