![]() |
#2
|
|||
|
|||
You can check to see if info.object matches the name assigned to the cylinder:
Code:
import viz import vizshape viz.go() viz.collision(viz.ON) dojo = viz.addChild('dojo.osgb') cylinder = vizshape.addCylinder(pos=[0,1.8,4]) def onCollision(info): if info.object == cylinder: print 'Collided with cylinder' viz.callback(viz.COLLISION_EVENT,onCollision) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Real time collision and object navigation | sunil.nair | Vizard | 11 | 10-04-2013 08:10 PM |
Find collision point of line and arbitrary object | asdf | Vizard | 2 | 01-28-2013 10:04 AM |
retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 04:26 AM |
linked object collision | pgagolf | Vizard | 1 | 04-19-2007 01:27 PM |
when collision mode is on, can i "turn it off" for an individual object? | Vdoug | Vizard | 1 | 09-22-2005 12:14 PM |