[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [x3d-public] RE: [www-vrml] Walking Kamala
Len Bullard wrote:
Then remembering that the fraction_changed eventOuts of sensors (eg, the
time sensor) can be applied to different parts of the act. For example,
when she walks to the temple, a way to stop the walk cycling and add some
gestures to complete the act:
function walkPosition(value) {
if (value = 1.0){
tsGesture[11].loop = FALSE;
tsGesture[10].startTime = Browser.getTime();
tsGesture[9].startTime = Browser.getTime() + 4;
}
}
Hey Len,
Where does the Browser.getTime() service come from?
Neither VRML or X3D have this service in their specs:
http://www.web3d.org/x3d/specifications/vrml/ISO-IEC-14772-VRML97/part1/concepts.html#4.12.10
http://www.web3d.org/x3d/specifications/ISO-IEC-19777-1-X3DLanguageBindings-ECMAScript/
The way I have done this is to create a Date object and call getTime()
startTime = new Date().getTime() / 1000;
So is Browser.getTime() a service on some VRML browsers?
If so that bothers me as it encourages incorrect content.
All said though, I'm not sure why I assume the Date object is available.
Perhaps it is part of the standard Java/Ecmascript definition, but I'm
not positive.
--
Alan Hudson
President Yumetech, Inc. www.yumetech.com
President Web3D Consortium www.web3d.org
206 340 8900
-------------------------------------------------------------------------
for list subscription/unsubscription,
go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html