WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-02-2006, 01:23 PM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
Still Confused

I'm still really confused on what the purpose of the FallAction class is. Would it be possible to give a brief synopsis of what it entails. Specifically, I'd like to know what the following lines do. Thanks,
Code:
fall = viz.ActionData()
fall.data = [5,5,5]
fall.actionclass = FallAction
I was also wondering if there was any documentation as to what self._actiondata_.data[0] self._actiondata_.data[1] self._actiondata_.data[2] meant in the following code. Is there any additional information on the details of this actiondata declaration?

Code:
	def begin(self,object):
		
		self.distance = self._actiondata_.data[0]
		self.speed = self._actiondata_.data[1]
		self.anim = self._actiondata_.data[2]
		
		self.amount = 0
		object.state(1)
		object.clear(1,0)
		object.execute(self.anim)
		yaw = object.get(viz.EULER)[0]
		self.vector = [-math.sin(yaw*vizmat.DEG_TO_RAD),0,-math.cos(yaw*vizmat.DEG_TO_RAD)]
		self.pos = object.get(viz.POSITION)

Last edited by betancourtb82; 03-02-2006 at 01:42 PM.
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:50 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC