WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-23-2009, 05:04 AM
omidbrb omidbrb is offline
Member
 
Join Date: Dec 2008
Posts: 27
About intersect function

Hi Everyone,

I have a question about the intersect function. I have an InfiniteTerrain object and since it's not flat, I want to find the y coordinate of a point at the InfiniteTerrain. I do the following and I always get 0:

Code:
x = SOME_X
z = SOME_Z
hillLevel = 6
terrain = viz.add('InfiniteTerrain.dlc',1,'456',hillLevel,6,15000,0.0005)
intersection = terrain.intersect([x,100,z],[x,-100,z], True, viz.ABS_GLOBAL)
for p in intersection:
    print p.point
and the result is:

[SOME_X, 0.0, SOME_Z]

But I think it shouldn't be 0.0. Am I missing something?

Best,
Omid
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Documentating function names aaThomas Vizard 5 05-15-2007 09:50 AM
Do you know how to send a value for 'pool' to the onActionEnd function? ghazanfar Vizard 1 03-22-2007 10:25 AM
timers and director function Jerry Vizard 1 06-22-2006 09:47 AM
node3d.center function tavaksai Vizard 3 08-13-2004 11:05 AM
walkTo function poolshark Vizard 4 10-09-2003 12:45 PM


All times are GMT -7. The time now is 03:28 PM.


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