getVectorYAxis
getVectorYAxis
parte:getVectorYAxis()
Ritorna il vettore di orientamento della parte relativo all'asse Y come oggetto LuaPoint (userdata): leggere con :getX()/:getY()/:getZ() — NON è una tabella ads_point (vy[1] è nil)
Esempio 1. Esempio getVectorYAxis
local top = top_ptop()
local children = top:getChildren()
if children and children:count() > 0 then
local prt = children:getAt(0)
local vy = prt:getVectorYAxis()
if vy then
print("\ngetVectorYAxis = (" .. tostring(vy:getX()) .. "," .. tostring(vy:getY()) .. "," .. tostring(vy:getZ()) .. ")")
else
print("\ngetVectorYAxis = nil")
end
else
print("\ngetVectorYAxis: nessuna parte figlia")
end