GET SOLID FACE NORMAL

From Macros Wiki
Jump to: navigation, search

Up

Command

GET_SOLID_FACE_NORMAL <solid number>, <face number>, <u>, <v>, <x>, <y>, <z>


Get the vector of a surface normal, given the UV position on the face.

Parameters

<solid number>
Solid number.
<face number>
Face number.
<u>
U position.
<v>
V position.
<x>
The name of a numeric variable to be set to the X component the vector.
<y>
The name of a numeric variable to be set to the Y component the vector.
<z>
The name of a numeric variable to be set to the Z component the vector.

Example

GET_SOLID_FACE_NORMAL 2, 5, 0.2, 0.45, vx, vy, vz
For an example macro see Create_face_normal