#1
|
|||
|
|||
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 [SOME_X, 0.0, SOME_Z] But I think it shouldn't be 0.0. Am I missing something? Best, Omid |
|
|
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 |