Thread: vizact classes
View Single Post
  #4  
Old 03-02-2006, 12:51 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

The first code block create an ActionData object. An ActionData object simply holds the relevant information for performing an action. You can put whatever information you want inside of it. The actionclass member is the only attribute of the ActionData object that must be defined. It needs to point to a class that inherits from viz.ActionClass. The _actiondata_ member of the ActionClass is a reference to the ActionData object. So in the code you provided, it is simply retrieving the 3 values from the ActionData object. In that specific example, the 3 values are the distance to fall, the speed to fall, and the animation to play.
Reply With Quote