I found a cool vex script to get the matrix of a camera but I can't get it to work.
http://andy.moonbase.net/archives/1397 [andy.moonbase.net]
vector @cdir; vector @raydir; matrix camMatrix = optransform(chs("camera")); //get a matrix with the camera's transforms. @cdir = cracktransform(0, 0, 0, {0,0,0}, camMatrix); //extract out the camera position as a vector @raydir = normalize(@P-@cdir); //get a vector to project pointo from camera
…In the “Camera” channel, I placed “/obj/Cam_01” and set my wrangle to detail but I'm not getting any values. Am I missing something?
-Olivier