ParallelGraphics Forums
General
You are here: [Forums]::[General]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
3D Page Of the Week
email:  password:
  General

Subject: Re: start two PositionInterpolators with delay HELP?!?
Sender: Uh 16.12.08 19:32
Hi, how can I start two PositionInterpolators with delay?

DEF button TouchSensor {}
DEF spieler Transform {
translation -2 0 0
children Shape {geometry Cone {}}
}
DEF ball Transform {
translation 2 0 0
children Shape {geometry Sphere {}}
}

DEF clock TimeSensor {}
DEF clock_ball TimeSensor {}
DEF pi PositionInterpolator {
key [0 .5 1]
keyValue [-2 0 0, -2 2 0, -2 0 0]
}
DEF pi_ball PositionInterpolator {
key [0 .5 1]
keyValue [2 0 0, 2 2 0, 2 0 0]
}

DEF main_SCR Script {
eventIn SFBool inp
eventOut SFTime out
url "javascript:
function inp(val,ts){
if (!val) out = ts;
}
"
}

ROUTE button.touchTime TO clock.startTime
ROUTE clock.fraction_changed TO pi.set_fraction
ROUTE pi.value_changed TO spieler.translation
ROUTE clock.isActive TO main_SCR.inp
ROUTE main_SCR.out TO clock_ball.startTime
ROUTE clock_ball.fraction_changed TO pi_ball.set_fraction
ROUTE pi_ball.value_changed TO ball.translation

 


start two PositionInterpolators with delay HELP?!? / Odi / 15.12.08 06:10
     Re: start two PositionInterpolators with delay HELP?!? / Uh / 16.12.08 19:32
         Re: start two PositionInterpolators with delay HEL / Odi / 16.12.08 19:44

Messages in thread: 3


© 1998-2009 ParallelGraphics. All rights reserved. Terms of use.