WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   cell(phone) vibration (https://forum.worldviz.com/showthread.php?t=2711)

hahaho 04-21-2010 09:42 PM

cell(phone) vibration
 
Hi, i want to vibrate the cell(phone) steadly

so, i used this code.

import viz
viz.go()
viz.phys.enable()
cell = viz.add('phone.3ds')
cell.setPosition(0.11510615050792694, 1.6993328332901001, 1.0478180646896362)
cell.setEuler([0,-80,0])
cell.collideSphere()
ANCHOR_POS = (0.11510615050792694, 1.6993328332901001, 0.1478180646896362)
joint = viz.phys.addHingeJoint(cell,None,pos=ANCHOR_POS,ax is0=[0,0,1])


but the cell's vibration is more and more largely ...
later , the cell is Out of sight.

Jeff 04-22-2010 10:55 AM

What about using a sequence of vizact.move() commands to create the vibration?


All times are GMT -7. The time now is 03:22 PM.

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