Track a 3D point from an object to get 2D xy codnates

Hey team.

I have a sketch that creates a 3d object much like an arrow that is rotated from the middle of its axis driven by two sensors. I am trying to get the vertex data of the tip of the 3D arrow in order to drive another function within the script. Where the 3D arrow is pointing to on the screen, I want it to effect the color of the background. Is anyone able to help me find a way of getting the data of the moving 3D tip of the arrow so I can achieve the desired result?

Tagged:

Answers

  • Use screenX() and screenY().

  • Perfect. I can see how that can work out thank you so much Tfguy44 its hard when you know what you need just not what functions to use.

  • Yeah. And it's a great feeling when you find out that there IS a function that does exactly what you want. :-)

Sign In or Register to comment.