PDA

View Full Version : Find collision point of line and arbitrary object


asdf
01-08-2013, 09:01 AM
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, 01: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, 11:04 AM
Thank you very much, viz.intersect works great!