get current location

edited March 2015 in How To...

Hi all,

I'm wondering if there is a function that can track the current position (get coordinates of the pointer in relation to original (0,0,0)) after a series of translate and rotate actions?

For instance after operations:

translate (50,50,0); rotate(0.1, 0.2, 0.3,0.4); translate(10,20,30);

what are the coordinates the current focus is on, in relation to the original (0,0,0);

Thanks,

Answers

  • edited March 2015 Answer ✓

    See if this section of the reference can help:

    Coordinates
    modelX()
    modelY()
    modelZ()
    screenX()
    screenY()
    screenZ()

  • Thanks PhiLho

Sign In or Register to comment.