onScreenText function

  1. first check with print statement that you get something from your get position function

  2. I would recommend to read
    www.panda3d.org/manual/index.php/Event_Handlers

and then use the “mouse” link to get the list of mouse related event

(mouse1 Mouse Button 1 Pressed
mouse2 Mouse Button 2 Pressed
mouse3 Mouse Button 3 Pressed
mouse1-up Mouse Button 1 Released
mouse2-up Mouse Button 2 Released
mouse3-up Mouse Button 3 Released
wheel_up Mouse Wheel rolled upwards
wheel_down Mouse Wheel rolled downwards)

  1. I would clearly not say Panda3D documentation is unstructured.
    It’s the opposite .
    BUT
    each Chapter gives you much more information if you have read the previous chapter.
    The KEY KEY Chapter are:
    a)Scenegraph
    b) Message and Task