Thread: stop physic
View Single Post
  #4  
Old 03-11-2009, 02:43 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
When the z coordinate of the ball is greater than 10 it will stop
Code:
def stopball():
	
	pos = ball.getPosition()
	if pos[2] > 10:
		ball.disable(viz.PHYSICS)
	
	
vizact.ontimer(0,stopball)
Reply With Quote