![]() |
|
#2
|
|||
|
|||
|
you could use viz.intersect and have your line start just below the ball and then go straight down far enough to cross the plane the block is in. If an intersection happens then you reset the position of the block. Something like this.
Code:
def moveBlock(): x,y,z = ball.getPosition() info = viz.intersect([x,y-1,z],[x,y-5,z]) if info.valid: info.object.setPosition([0,-10,0], viz.REL_LOCAL) vizact.ontimer(0,moveBlock) |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 04:26 AM |
| Can you link the position of a tracker to the orientation of an object? | michaelrepucci | Vizard | 1 | 09-19-2008 10:23 AM |
| Child Object Rotation | paulgoldberg | Vizard | 5 | 09-05-2006 11:33 AM |
| when collision mode is on, can i "turn it off" for an individual object? | Vdoug | Vizard | 1 | 09-22-2005 12:14 PM |
| rotate to object | jargon | Vizard | 1 | 08-08-2005 12:20 PM |