View Single Post
  #6  
Old 05-07-2009, 11:12 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could loop through all your objects and set their velocities and angular velocities to zero.
Code:
for i in range (len(objects)):
	objects[i].setVelocity([0,0,0])
	objects[i].setAngularVelocity([0,0,0])
Start a timer when when the force is applied that will expire after 3 seconds then call your function that stops the movement.
Reply With Quote