unanswered About the display of cursor coordinates

03 Oct 2022 11:04 #1

I am a beginner who just started using CHAI3D.
Currently, I am having trouble displaying the cursor coordinates as I would like.
For example, when the cursor is placed on one of the vertices of a rectangle placed at setLocalPos(0.0 , 0.0 , 0.0), the coordinates of the cursor obtained by getPosition(); are (0.0 , 0.0 , 0.0). When I move the rectangle and then place the cursor on the same vertex as in setLocalPos(0.0 , 0.0 , 0.0), I want the cursor coordinates obtained by getPosition(); to be (0.0 , a , 0.0), but they are not.
Is there any solution to this problem?

I look forward to your reply.

Please Log in or Create an account to join the conversation.