![]() |
#1
|
|||
|
|||
stop physic
Hi,
I have created a simple bouncing ball. I want it to stop when it reaches a particular point. But I don't know how. I'll appreciate any help. Here is my code for ball: import viz viz.go() viz.phys.enable() ground = viz.add('tut_ground.wrl') # Add ground ground.collidePlane() # Make collideable plane ball = viz.add('ball.wrl',pos=[0,.2,6]) # Add a ball ballPhys = ball.collideSphere(bounce = 2) # Enable physics on ball ball.applyForce([0,.3,.2],0.5) # Apply small force for half a second |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Stop for... loop | Johannes | Vizard | 20 | 04-01-2014 01:53 AM |
How to stop vizact.move | Jerry | Vizard | 3 | 06-04-2009 04:25 PM |
moving and object by mouse but don't know how to stop the movement | nlfrnassimi | Vizard | 8 | 04-26-2009 07:23 AM |
how can I stop an action? | nlfrnassimi | Vizard | 4 | 02-13-2009 12:59 AM |
When a video stop ? | djdesmangles | Vizard | 2 | 01-11-2007 04:15 PM |