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

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   General - SDK

Subject: Re: NavigationInfo TYPE
Sender: Uh 14.04.08 00:58

...
I create some NavigationInfo: DEF NAVIGATION_INFO
    NavigationInfo { avatarSize [0.5, 25, 10, 3, 3, 0, 11 ] speed
    2.0 headlight TRUE type ["WALK", "NONE"]}    

How can I switch between the two types: "WALK" and "NONE"?

...
#VRML V2.0 utf8
DEF NAVIGATION_INFO NavigationInfo {
type ["WALK", "NONE"]
}
DEF main_TS TouchSensor {}
Shape {
geometry Cone {}
}
DEF main_SCR Script {
eventIn SFTime go
field SFNode NAVIGATION_INFO USE NAVIGATION_INFO
url "javascript:
function go(){
var tmp_str0 = NAVIGATION_INFO.type[0];
var tmp_str1 = NAVIGATION_INFO.type[1];
NAVIGATION_INFO.type = new MFString(tmp_str1, tmp_str0);
}
"
}
ROUTE main_TS.touchTime TO main_SCR.go

 


NavigationInfo TYPE / mutafchiev@gmx.de / 14.04.08 00:08
     Re: NavigationInfo TYPE / Uh / 14.04.08 00:58
         Re: NavigationInfo TYPE / mutafchiev@gmx.de / 14.04.08 02:42

Messages in thread: 3


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