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 [SOME_X, 0.0, SOME_Z] But I think it shouldn't be 0.0. Am I missing something? Best, Omid |
Unfortunately the current version of the InfiniteTerrain plugin does not work with the intersect function. If you were to supply your own terrain generation function to the plugin, then you would be able to determine the height of the terrain at any given (x,z) coordinate. Here is a sample script showing how to use your own function to generate the terrain:
Code:
import viz |
Thanks for the reply
Thanks a lot for the reply. I wonder why all the advanced commands are not documented in the manual, while they look quite useful in certain situations.
Best, Omid |
Collisions with InfiniteTerrain
I also noticed that collisions with InfiniteTerrain are not handled automatically. Is it true? This is the code that I used to enable collisions:
Code:
view = viz.add(viz.VIEWPOINT) Best Regards, Omid |
It looks like you'll have to handle it manually. Have you had any success creating the code to do that?
|
I haven't tried yet but I'll post if I managed to do that.
|
All times are GMT -7. The time now is 02:47 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC