WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Find collision point of line and arbitrary object (https://forum.worldviz.com/showthread.php?t=4453)

asdf 01-08-2013 08:01 AM

Find collision point of line and arbitrary object
 
Hi,
is there a way to get the Collision Point between a line and a loaded Object?

Background: I have a groundplane with Hills and want to generate stones that stick in the Plane. So I have to know the height (z-coordinate) of the texture for a given x and y coordinate.

If I could get the collision point of a vertical line and the ground plane I knew the correct height to place the stone.

Jeff 01-09-2013 12:13 PM

Take a look at the viz.intersect command or the viz.pick command if you are using the mouse position to draw the line.

asdf 01-28-2013 10:04 AM

Thank you very much, viz.intersect works great!


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

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