WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   easeIn for a spin? (https://forum.worldviz.com/showthread.php?t=3780)

chris_user 06-10-2011 12:10 AM

easeIn for a spin?
 
Hello,

hope I can make my question clear to you.

I want a certain part to start spinning until the user stops it, so far it worked with the spin command. But it looks a little bit weird if it simply starts and stops without increasing speed. My problem is I can't create this effect with the spinTo command and use the embedded interpolation methods.

Tips to get a solution are welcome.

Thanks,
Chris

Jeff 06-10-2011 02:55 PM

Can you post some example code that does not work for you?
The following uses vizact.easeIn to start the spin slowly:
Code:

import viz
import vizact
viz.go()

gallery = viz.addChild('gallery.ive')
ball = viz.addChild('ball.wrl',pos=[0,1.8,3])

spin = vizact.spinTo(euler=[180,0,0],speed=45,interpolate=vizact.easeIn)

vizact.onkeydown(' ',ball.addAction,spin)


chris_user 06-14-2011 07:04 AM

Hi Jeff,

my problem is that the spinTo command just catches the shortest way so far, but I need a steady rotation going on until you hit a key and it stops. Sometihng like a running wheel. It starts slowly and increases the rotationspeed till it hits his running speed. Hope I could make it a little bit more clear to you.

Thanks,
Chris


All times are GMT -7. The time now is 01:41 PM.

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