Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in _menu_load_objects() (line 579 of /home/drbiz/public/tools.realism.com/includes/menu.inc).

touchAnimation4.x3d

This is the X3D code for touchAnimation4.x3d. This is also used as touchAnimation7.x3d by changing the 4 to 7 in cycleInterval.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.2.xsd'>
    <head>
        <meta content='animatedBasic.x3d' name='title'/>
        <meta content='Animated Basic test scene' name='description'/>
        <meta content='Leonard Daly' name='creator'/>
        <meta content='2016-01-07' name='created'/>
        <meta content='2016-01-07' name='modified'/>
        <meta content='Copyright 2014, Daly Realism' name='rights'/>
        <meta content='Creative Commons - Attribution, Share-Alike V4 (CC-BY-SA)' name='accessRights'/>
        <meta content='http://creativecommons.org/licenses/by-sa/4.0/legalcode' name='license'/>
   </head>
    <Scene>
        <Transform DEF='BoxOrbitor'>
            <Transform translation='-2 0 0'>
                <Shape>
                    <Box size='2 2 2'></Box>
                    <Appearance>
                        <Material diffuseColor="1 0 0"></Material>
                    </Appearance>
                </Shape>
            </Transform>
        </Transform>
        <Transform DEF='ConeLocator' translation='-2 2 0'>
            <Shape>
                <Cone height='2' bottomRadius='1'></Cone>
                <Appearance>
                    <Material diffuseColor="1 1 0"></Material>
                </Appearance>
            </Shape>
        </Transform>
        <Transform translation='2 0 0'>
            <Shape>
                <Sphere radius='1'></Sphere>
                <Appearance>
                    <Material diffuseColor="0 0 1"></Material>
                </Appearance>
            </Shape>
        </Transform>
        <Transform translation='0 0 -3'>
            <TouchSensor DEF='CylinderSwitch' enabled='TRUE'></TouchSensor>
            <Shape>
                <Cylinder height='2' radius='1'></Cylinder>
                <Appearance>
                    <Material DEF='CylinderColor' diffuseColor="0 1 0"></Material>
                </Appearance>
            </Shape>
        </Transform>
        <TimeSensor DEF='Timer' startTime='1' stopTime='0' enabled='FALSE' loop='TRUE' cycleInterval='4'></TimeSensor>
        <PositionInterpolator DEF='MoverCone' key='0 .5 1' keyValue='-2 2 0, -2 -2 0, -2 2 0'></PositionInterpolator>
        <ROUTE fromNode='Timer' fromField='fraction_changed' toNode='MoverCone' toField='set_fraction'></ROUTE>
        <ROUTE fromNode='MoverCone' fromField='value_changed' toNode='ConeLocator' toField='translation'></ROUTE>

        <OrientationInterpolator DEF='OrbitorBox' key='0 .5 1' keyValue='0 1 0 0, 0 1 0 3.14, 0 1 0 6.28'></OrientationInterpolator>
        <ROUTE fromNode='Timer' fromField='fraction_changed' toNode='OrbitorBox' toField='set_fraction'></ROUTE>
        <ROUTE fromNode='OrbitorBox' fromField='value_changed' toNode='BoxOrbitor' toField='rotation'></ROUTE>
        
        <ROUTE fromNode='CylinderSwitch' fromField='isOver' toNode='Timer' toField='enabled'></ROUTE>
    </Scene>
</X3D>





Tags: