WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How to find coordinates of 3D model on mouse click (https://forum.worldviz.com/showthread.php?t=6370)

hetal_kpandya 08-09-2021 10:32 PM

How to find coordinates of 3D model on mouse click
 
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/lat...ighlight=mouse

Then you could use avatar.getPosition() to query the avatar's position from that mouse click callback

https://docs.worldviz.com/vizard/lat...ht=getposition

You can also try turning on collision with the environment for the avatar to move over the terrain correctly?

https://docs.worldviz.com/vizard/lat...ight=collision

Best,
Sado


All times are GMT -7. The time now is 08:47 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC