WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-10-2008, 08:45 AM
Andrey Andrey is offline
Member
 
Join Date: Apr 2007
Posts: 21
e.obj2 in collisions

Hello,

There is a set of objects described as a list with the members which are direct instances of a class. These objects are e.obj2 in collisions. Could you recommend how to register the collision with certain object by means of its class variable?

Thank you,
Andrey
Reply With Quote
  #2  
Old 07-10-2008, 11:24 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Sorry, I don't understand what you are trying to do. Can you be more specific?
Reply With Quote
  #3  
Old 07-10-2008, 01:12 PM
Andrey Andrey is offline
Member
 
Join Date: Apr 2007
Posts: 21
Sorry for the puzzle. So I have a number of objects (balls) described in the script as the list segmSet[]. Each object was generated as the instance of class. While colliding with a hand moving pointer object (which is e.obj1) such a ball (which is e.obj2) should change the color to orange and class variable segmSet[].selected associated with this object should be changed. No problem with color:

e.obj2.color(viz.ORANGE)

but if I try something like

if e.obj2 in segmSet:
. . .

to change segmSet[].selected, it does not work.
Reply With Quote
  #4  
Old 07-10-2008, 06:54 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
It's still not clear what the problem is. Can you post a small sample script that recreates the problem you are having so that I can run it here?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Camera collisions with duckcourt code shivanangel Vizard 2 03-14-2008 11:46 AM


All times are GMT -7. The time now is 07:22 AM.


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