WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 3.67 average. Display Modes
  #1  
Old 12-01-2010, 06:23 PM
psykoko psykoko is offline
Member
 
Join Date: Dec 2010
Posts: 9
move arm.

Hi i want to move that female_arm smoothly.
if minus sigal input from UDP, i want to move forearm from 0 to -90 degee.
so i have been coding this.
please modify my code.

Code:
def update():
	global n1,n2
	n1 -= 1
	n2 += 1
	data = ReceiveData()
	if data:
			udp = struct.unpack(">d", data[0])[0]
			print udp
			if  0 > udp :
				Euler = Forearm.getEuler(viz.AVATAR_WORLD)
				Forearm.setEuler([0,0,n1])
				#Forearm.setEuler([0,viz.elapsed(),-1],viz.REL_LOCAL)
				UpperArm.setEuler(0, -30, -80)
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to move front and back nasr Vizard 2 05-11-2009 02:00 AM
how to move seperately? nasr Vizard 2 05-11-2009 01:57 AM
move animated camera around corner question nlfrnassimi Vizard 1 02-23-2009 09:45 AM
node3d.visible(viz.OFF) Problem Sandro Holzer Vizard 6 02-10-2009 06:20 AM
Move Objects Johannes Vizard 8 01-19-2005 10:15 AM


All times are GMT -7. The time now is 04:46 PM.


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