Wowpedia
Advertisement
Wowpedia
240,442
pages

Converts a 3 dimensional point into clip space using the model scene camera properties.

x, y, z = Project3DPointTo2D(x, y, z)

Arguments

x, y, z 
number

Returns

x, y 
number - Screen-space position as viewed by the model scene camera
number - Depth value for the point

Details

  • This can be used to achieve various effects, from having a frame sit in a specific position on a 3D model that is being rotated/moved, to calculating and drawing 3d quads and triangles using Texture:SetVertexOffset(i, x, y)
Advertisement