trowa
29-12-2005 09:38:21
hi,
I wonder if anybody can enlighten me on how to use IntersectionSceneQuery.
I've tried the following:
and also the following:
The above 2 ways both gave me "TypeError: iteration over non-sequence".
How should the code be written if i want to check whether the entity has intersect with the world geometry using IntersectionSceneQuery?
I wonder if anybody can enlighten me on how to use IntersectionSceneQuery.
I've tried the following:
self.intersectionSceneQuery = sceneManager.createIntersectionQuery()
for queryResult in self.intersectionSceneQuery.execute():
# do something
and also the following:
qr = self.intersectionSceneQuery.execute()
c = qr.movables2world
for queryResult in c:
# do something
The above 2 ways both gave me "TypeError: iteration over non-sequence".
How should the code be written if i want to check whether the entity has intersect with the world geometry using IntersectionSceneQuery?