WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-10-2011, 12:10 AM
chris_user chris_user is offline
Member
 
Join Date: Feb 2011
Posts: 20
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
Reply With Quote
  #2  
Old 06-10-2011, 02:55 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,450
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)
Reply With Quote
  #3  
Old 06-14-2011, 07:04 AM
chris_user chris_user is offline
Member
 
Join Date: Feb 2011
Posts: 20
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
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
Spin around one point Ellen Vizard 3 07-01-2010 11:14 PM
Spin Actions and rotations Vinicius Lima Vizard 1 10-22-2007 11:49 AM
spin around axis object kazo11 Vizard 2 04-19-2007 09:48 AM
Spin Move oscar Vizard 2 12-03-2004 05:52 AM


All times are GMT -7. The time now is 07:09 AM.


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