View Full Version : How to find coordinates of 3D model on mouse click
hetal_kpandya
08-09-2021, 10:32 PM
Hi,
I am hetal
working on moving avatars on 3D model terrine
problem is my avatar moves streight
So as a solution I want avatar to move on terrine according to height information of the terrine
sado_rabaudi
08-25-2021, 09:13 AM
Hi Hetal,
Here is the documentation on using a mouse click as a callback:
https://docs.worldviz.com/vizard/latest/#Mouse.htm?Highlight=mouse
Then you could use avatar.getPosition() to query the avatar's position from that mouse click callback
https://docs.worldviz.com/vizard/latest/#tutorial__querying_position.htm?Highlight=getposi tion
You can also try turning on collision with the environment for the avatar to move over the terrain correctly?
https://docs.worldviz.com/vizard/latest/#Shapes.htm?Highlight=collision
Best,
Sado
vBulletin® v3.8.7, Copyright ©2000-2025, vBulletin Solutions, Inc.