<head>
</head>
<!--
<!--
Event Graph ROUTE Table
shows event connections
-->
<!--
Index for DEF nodes:
ACTIVE-SECTOR-INDICATOR,
BACK-LEFT-JOINT,
BACK-LEFT-WHEEL-BODY,
BACK-LEFT-WHEEL-GEOM,
BACK-LEFT-WHEEL-TX,
BACK-RIGHT-JOINT,
BACK-RIGHT-WHEEL-BODY,
BACK-RIGHT-WHEEL-GEOM,
BACK-RIGHT-WHEEL-TX,
BODY-COLLECTION,
BRAKE-LIGHT-COLOR,
BRAKE-LIGHT-GEOM,
cam_car_chase-POS-INTERP,
cam_car_chase-ROT-INTERP,
cam_car_chase-TIMER,
Camera03,
Camera03-OLD,
CAMERA-CONTROL-SCRIPT,
CAMERA-TX,
CAR-BODY,
CAR-BODY-GEOM,
CAR-BODY-TX,
carCamTransform,
CAR-CONTAINER,
CAR-CONTROL-SCRIPT,
carGroup,
CHASSIS-BOX,
CHASSIS-PROXY-GEOM,
CHASSIS-VIEW,
COLLISION-GROUP,
COLLISION-OUTPUT,
DEBUG_TERRAIN,
DEBUG-GEOM,
DEBUG-POINTER-APP,
ENEMY-GEOM,
FRONT-LEFT-DEBUG-POINTER,
FRONT-LEFT-HINGE-ANGLE-INTERP,
FRONT-LEFT-HINGE-WHEEL-INTERP,
FRONT-LEFT-JOINT,
FRONT-LEFT-MAXSTOP-ANGLE-INTERP,
FRONT-LEFT-MINSTOP-ANGLE-INTERP,
FRONT-LEFT-TX-DEBUG-POINTER,
FRONT-LEFT-WHEEL-BODY,
FRONT-LEFT-WHEEL-GEOM,
FRONT-LEFT-WHEEL-TX,
FRONT-LEFT-WHEEL-TX-DEBUG-HINGE,
FRONT-LEFT-WHEEL-TX-DEBUG-MAX,
FRONT-LEFT-WHEEL-TX-DEBUG-MIN,
FRONT-RIGHT-DEBUG-POINTER,
FRONT-RIGHT-HINGE-ANGLE-INTERP,
FRONT-RIGHT-HINGE-WHEEL-INTERP,
FRONT-RIGHT-JOINT,
FRONT-RIGHT-MAXSTOP-ANGLE-INTERP,
FRONT-RIGHT-MINSTOP-ANGLE-INTERP,
FRONT-RIGHT-TX-DEBUG-POINTER,
FRONT-RIGHT-WHEEL-BODY,
FRONT-RIGHT-WHEEL-GEOM,
FRONT-RIGHT-WHEEL-TX,
FRONT-RIGHT-WHEEL-TX-DEBUG-HINGE,
FRONT-RIGHT-WHEEL-TX-DEBUG-MAX,
FRONT-RIGHT-WHEEL-TX-DEBUG-MIN,
GAMEPAD,
JOINT-INDICATOR-LEFT,
JOINT-INDICATOR-RIGHT,
JOINT-SPHERE,
KEYS,
KEYSC,
keysensor,
KEYTIMER,
physicsSectorScript,
RAMP_APP,
REVERSE-LIGHT-COLOR,
REVERSE-LIGHT-GEOM,
ROAD-APP,
Road-v-001,
Road-v-002,
Road-v-003,
Road-v-004,
Road-v-006,
Road-v-007,
SAND-APP,
Sand-v-001,
Sand-v-002,
SmallBulding,
SPEED-COLOR,
SPEED-INDICATOR,
SPEED-INDICATOR-COLOR,
TERRAIN-CONTAINER,
UI-CONTROL-SCRIPT,
WALL-APP,
WALL-v-001a,
WALL-v-001b,
WALL-v-001c,
WALL-v-001d,
Wall-v-002,
Wall-v-003,
Wall-v-004,
Wall-v-005,
Wall-v-006,
Wall-v-007,
Wall-v-008,
Wall-v-009,
Wall-v-010,
Wall-v-011,
WHEEL,
WHEEL-GEOM,
WHEEL-MASS,
WHEEL-SHAPE
Index for Viewpoint nodes:
Viewpoint_1,
Viewpoint_2,
Camera03,
Camera03-OLD,
CHASSIS-VIEW
-->
<Scene>
<WorldInfo title='CarDemoMain.x3d'/>
<Group>
<Group DEF='CAR-CONTAINER'>
<Switch DEF='DEBUG-GEOM' whichChoice='0'>
<Group>
<Transform DEF='ACTIVE-SECTOR-INDICATOR'>
<Shape>
<Appearance>
<Material emissiveColor='1.0 1.0 0.0' transparency='0.5'/>
</Appearance>
</Shape>
</Transform>
<Shape DEF='FRONT-LEFT-DEBUG-POINTER'>
<Appearance DEF='DEBUG-POINTER-APP'>
<Material/>
<LineProperties linetype='2' containerField='lineProperties'/>
</Appearance>
<LineSet vertexCount='2' containerField='geometry'>
<Coordinate point='0.0 0.0 0.0 1.0 0.0 0.0'/>
<Color color='1.0 1.0 1.0 1.0 1.0 1.0'/>
</LineSet>
</Shape>
</Transform>
<Shape DEF='FRONT-RIGHT-DEBUG-POINTER'>
<Appearance USE='
DEBUG-POINTER-APP'/>
<LineSet vertexCount='2' containerField='geometry'>
<Coordinate point='0.0 0.0 0.0 -1.0 0.0 0.0'/>
<Color color='1.0 1.0 1.0 1.0 1.0 1.0'/>
</LineSet>
</Shape>
</Transform>
<Shape DEF='FRONT-LEFT-TX-DEBUG-POINTER'>
<Appearance USE='
DEBUG-POINTER-APP'/>
<LineSet vertexCount='2' containerField='geometry'>
<Coordinate point='0.0 0.0 0.0 1.0 0.0 0.0'/>
<Color color='1.0 1.0 0.0 1.0 1.0 0.0'/>
</LineSet>
</Shape>
</Transform>
<Shape DEF='FRONT-RIGHT-TX-DEBUG-POINTER'>
<Appearance USE='
DEBUG-POINTER-APP'/>
<LineSet vertexCount='2' containerField='geometry'>
<Coordinate point='0.0 0.0 0.0 -1.0 0.0 0.0'/>
<Color color='0.0 0.0 1.0 0.0 0.0 1.0'/>
</LineSet>
</Shape>
</Transform>
<Shape>
<Appearance USE='
DEBUG-POINTER-APP'/>
<LineSet vertexCount='2' containerField='geometry'>
<Coordinate point='0.0 0.0 0.0 1.0 0.0 0.0'/>
<Color color='0.0 0.0 1.0 0.0 0.0 1.0'/>
</LineSet>
</Shape>
</Transform>
<Shape>
<Appearance USE='
DEBUG-POINTER-APP'/>
<LineSet vertexCount='2' containerField='geometry'>
<Coordinate point='0.0 0.0 0.0 -1.0 0.0 0.0'/>
<Color color='1.0 1.0 1.0 1.0 1.0 1.0'/>
</LineSet>
</Shape>
</Transform>
</Group>
</Switch>
<Transform DEF='WHEEL-SHAPE' rotation='0.0 0.0 1.0 1.572'>
<Shape>
<Appearance>
<Material emissiveColor='1.0 0.0 1.0'/>
</Appearance>
<Cylinder height='0.1' radius='0.5'/>
</Shape>
</Transform>
<Group DEF='JOINT-INDICATOR-LEFT'>
<Shape>
<LineSet vertexCount='2 2' containerField='geometry'>
<Coordinate point='0.0 0.0 0.0 -1.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0'/>
<Color color='1.0 1.0 0.0 1.0 1.0 0.0 1.0 1.0 1.0 1.0 1.0 1.0'/>
</LineSet>
</Shape>
<Shape DEF='JOINT-SPHERE'>
<Appearance>
<Material emissiveColor='0.0 1.0 1.0'/>
</Appearance>
<Sphere radius='0.1'/>
</Shape>
</Group>
</Transform>
<Transform USE='
WHEEL-SHAPE'/>
<Group DEF='JOINT-INDICATOR-RIGHT'>
<Shape>
<LineSet vertexCount='2 2' containerField='geometry'>
<Coordinate point='0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0'/>
<Color color='1.0 1.0 0.0 1.0 1.0 0.0 1.0 1.0 1.0 1.0 1.0 1.0'/>
</LineSet>
</Shape>
<Shape USE='
JOINT-SPHERE'/>
</Group>
</Transform>
</Transform>
</Transform>
<Shape>
<Appearance>
<Material emissiveColor='0.8 0.8 0.0'/>
</Appearance>
<Box DEF='CHASSIS-BOX' size='2.2 0.05 5.0'/>
</Shape>
<Shape>
<Appearance>
</Appearance>
<Box size='0.1 1.0 0.1'/>
</Shape>
</Transform>
<Transform translation='0.0 0.4 0.0'>
<Shape>
<Appearance>
<Material emissiveColor='0.0 0.0 0.8' transparency='0.5'/>
</Appearance>
<Box DEF='CHASSIS-PROXY-GEOM' size='2.25 0.4 5.1'/>
</Shape>
<Transform translation='1.0 0.1 2.65'>
<Shape DEF='BRAKE-LIGHT-GEOM'>
<Appearance>
</Appearance>
<Box size='0.1 0.2 0.1'/>
</Shape>
</Transform>
<Transform translation='-1.0 0.1 2.65'>
</Transform>
<Transform translation='0.9 0.1 2.65'>
<Shape DEF='REVERSE-LIGHT-GEOM'>
<Appearance>
</Appearance>
<Box size='0.1 0.1 0.1'/>
</Shape>
</Transform>
<Transform translation='-0.9 0.1 2.65'>
</Transform>
</Transform>
</Transform>
</Transform>
</Group>
</Group>
<NavigationInfo speed='10.0' type='"NONE"'/>
<Inline/>
<Shape DEF='ENEMY-GEOM'/>
</Transform>
<!-- ROUTE information for cam_car_chase-POS-INTERP node:
[from cam_car_chase-TIMER.fraction_changed to set_fraction
]
[from value_changed to carGroup.translation
]
[from value_changed to CAR-BODY-TX.translation
]
-->
<PositionInterpolator DEF='cam_car_chase-POS-INTERP' key='0.0 0.0050 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05 0.055 0.06 0.065 0.07 0.075 0.08 0.085 0.09 0.095 0.1 0.105 0.11 0.115 0.12 0.125 0.13 0.135 0.14 0.145 0.15 0.155 0.16 0.165 0.17 0.175 0.18 0.185 0.19 0.195 0.2 0.205 0.21 0.215 0.22 0.225 0.23 0.235 0.24 0.245 0.25 0.255 0.26 0.265 0.27 0.275 0.28 0.285 0.29 0.295 0.3 0.305 0.31 0.315 0.32 0.325 0.33 0.335 0.34 0.345 0.35 0.355 0.36 0.365 0.37 0.375 0.38 0.385 0.39 0.395 0.4 0.405 0.41 0.415 0.42 0.425 0.43 0.435 0.44 0.445 0.45 0.455 0.46 0.465 0.47 0.475 0.48 0.485 0.49 0.495 0.5 0.505 0.51 0.515 0.52 0.525 0.53 0.535 0.54 0.545 0.55 0.555 0.56 0.565 0.57 0.575 0.58 0.585 0.59 0.595 0.6 0.605 0.61 0.615 0.62 0.625 0.63 0.635 0.64 0.645 0.65 0.655 0.66 0.665 0.67 0.675 0.68 0.685 0.69 0.695 0.7 0.705 0.71 0.715 0.72 0.725 0.73 0.735 0.74 0.745 0.75 0.755 0.76 0.765 0.77 0.775 0.78 0.785 0.79 0.795 0.8 0.805 0.81 0.815 0.82 0.825 0.83 0.835 0.84 0.845 0.85 0.855 0.86 0.865 0.87 0.875 0.88 0.885 0.89 0.895 0.9 0.905 0.91 0.915 0.92 0.925 0.93 0.935 0.94 0.945 0.95 0.955 0.96 0.965 0.97 0.975 0.98 0.985 0.99 0.995 1.0' keyValue='-82.59 6.8 -46.1 -62.37 7.482 -34.12 -45.75 8.077 -24.49 -30.63 8.902 -15.22 -14.28 9.772 -7.022 2.577 10.66 0.2272 19.5 11.58 7.357 36.34 12.33 14.35 53.06 12.96 21.47 69.88 13.31 28.19 86.65 13.45 34.39 103.0 13.08 41.36 120.3 12.53 47.38 137.9 11.52 53.08 156.0 11.13 55.74 174.3 10.82 56.99 192.6 10.72 59.23 210.8 10.17 59.67 229.1 9.332 58.07 247.3 7.655 57.25 265.2 6.045 56.14 283.9 3.88 56.28 305.8 3.112 54.26 324.5 3.111 54.26 340.3 3.338 51.85 353.7 3.376 40.25 367.0 2.986 24.67 368.9 2.698 4.603 367.0 2.426 -16.23 352.9 2.476 -24.65 333.0 2.496 -27.47 313.1 2.5 -26.23 296.2 2.472 -22.66 278.8 2.428 -17.45 260.8 2.399 -12.16 243.0 2.371 -7.717 225.0 2.348 -3.115 206.7 2.312 -2.477 188.5 2.288 -3.483 169.7 2.239 -1.287 149.8 2.275 -3.75 131.7 2.358 -8.071 114.9 2.463 -14.18 100.4 2.562 -25.71 90.72 2.614 -41.85 86.37 2.654 -60.62 85.63 2.678 -79.14 89.62 2.695 -96.48 93.92 2.706 -114.4 98.32 2.705 -132.4 102.4 2.704 -150.0 106.6 2.701 -168.2 109.9 2.699 -186.9 113.2 2.697 -205.0 116.3 2.703 -223.3 119.5 2.677 -242.2 124.6 2.671 -260.7 136.0 2.586 -274.3 147.6 2.655 -286.3 162.2 2.934 -297.0 180.1 3.192 -305.3 198.0 3.424 -311.6 216.3 3.605 -313.4 234.2 3.771 -315.6 252.3 3.92 -317.4 270.7 4.05 -318.9 289.1 4.156 -319.6 307.5 4.109 -319.7 325.9 4.208 -318.6 344.3 4.346 -316.6 362.7 4.906 -314.4 380.4 5.254 -311.4 397.7 5.339 -306.8 415.4 5.254 -302.2 432.7 5.108 -297.5 449.9 4.975 -292.7 467.4 4.904 -287.6 485.2 4.894 -282.0 503.5 4.918 -276.8 521.7 4.979 -272.2 539.2 5.025 -264.4 559.5 5.217 -261.1 577.1 5.521 -259.7 592.7 5.536 -260.0 609.2 5.673 -266.6 625.8 5.681 -275.3 637.2 5.98 -287.9 643.5 6.524 -304.4 647.8 7.731 -322.9 649.2 8.83 -341.2 645.5 9.758 -359.2 641.8 10.57 -377.1 637.5 11.32 -394.9 633.8 12.09 -413.0 630.2 12.87 -431.1 626.9 13.65 -449.2 623.2 14.43 -467.1 619.5 15.2 -484.9 615.9 15.99 -502.7 612.4 16.78 -520.8 609.1 17.56 -538.7 606.3 18.33 -556.6 603.1 19.09 -574.6 600.8 19.84 -592.7 596.6 20.53 -610.0 590.4 21.21 -626.5 586.1 21.66 -643.9 578.2 22.27 -660.2 565.8 23.26 -673.1 551.5 23.85 -684.5 537.3 24.29 -693.4 522.5 24.88 -701.2 502.6 26.11 -708.5 483.1 27.4 -715.0 465.6 28.76 -718.8 447.7 30.48 -721.0 429.6 32.79 -721.6 411.5 35.32 -721.8 393.4 38.14 -721.8 375.3 41.01 -721.1 357.2 43.63 -720.4 338.9 45.85 -719.5 320.6 47.65 -720.0 302.5 49.12 -721.8 284.2 49.91 -722.0 266.1 50.75 -721.8 248.0 51.6 -721.1 229.9 52.98 -719.5 211.4 54.62 -717.8 193.6 55.88 -716.9 181.0 56.93 -715.5 170.3 57.06 -717.5 159.7 57.14 -721.0 147.3 57.03 -725.2 134.0 56.99 -730.3 119.9 57.01 -733.3 106.6 57.88 -737.3 93.7 58.32 -738.9 79.87 57.82 -736.2 79.41 56.84 -725.4 77.53 54.88 -714.7 76.89 51.27 -700.9 68.47 48.1 -691.1 59.62 45.34 -683.6 47.72 44.12 -676.4 30.01 41.79 -672.2 11.54 39.43 -669.3 -6.463 36.79 -672.5 -24.68 34.26 -675.1 -42.89 31.75 -677.3 -61.71 29.48 -681.1 -85.61 27.17 -677.3 -108.9 25.76 -662.8 -126.4 24.6 -648.0 -139.1 23.79 -629.3 -144.8 22.49 -606.4 -147.4 21.33 -586.7 -145.9 20.34 -568.9 -142.3 19.44 -553.3 -130.3 18.0 -528.6 -113.8 15.9 -492.6 -104.1 14.73 -472.3 -97.49 13.85 -457.7 -91.04 12.82 -440.9 -86.09 11.67 -422.3 -85.55 10.82 -402.1 -87.88 10.06 -383.9 -95.84 9.198 -368.4 -107.3 8.613 -354.6 -121.1 8.209 -342.7 -137.0 8.053 -333.2 -153.3 7.908 -324.3 -170.0 7.788 -316.4 -186.6 7.674 -308.6 -203.2 7.56 -300.9 -220.1 7.47 -293.7 -236.8 7.35 -285.5 -253.0 7.234 -276.5 -269.2 6.995 -268.4 -284.8 6.757 -259.6 -300.1 6.612 -253.3 -313.8 6.511 -248.3 -327.9 6.508 -238.7 -328.8 6.546 -225.6 -324.0 6.535 -213.0 -314.0 6.51 -201.5 -299.1 6.324 -190.4 -283.3 6.095 -180.7 -267.9 5.805 -170.6 -252.8 5.539 -160.5 -237.7 5.251 -150.2 -222.7 5.056 -139.5 -207.9 4.936 -128.7 -192.7 4.93 -118.5 -177.7 4.997 -108.3 -162.6 5.143 -97.98 -147.5 5.369 -87.61 -132.3 5.653 -77.38 -116.4 6.003 -67.74 -100.5 6.361 -57.64 -82.59 6.8 -46.1'/>
<!-- ROUTE information for cam_car_chase-ROT-INTERP node:
[from cam_car_chase-TIMER.fraction_changed to set_fraction
]
[from value_changed to carGroup.rotation
]
[from value_changed to CAR-BODY-TX.rotation
]
-->
<OrientationInterpolator DEF='cam_car_chase-ROT-INTERP' key='0.0 0.0050 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05 0.055 0.06 0.065 0.07 0.075 0.08 0.085 0.09 0.095 0.1 0.105 0.11 0.115 0.12 0.125 0.13 0.135 0.14 0.145 0.15 0.155 0.16 0.165 0.17 0.175 0.18 0.185 0.19 0.195 0.2 0.205 0.21 0.215 0.22 0.225 0.23 0.235 0.24 0.245 0.25 0.255 0.26 0.265 0.27 0.275 0.28 0.285 0.29 0.295 0.3 0.305 0.31 0.315 0.32 0.325 0.33 0.335 0.34 0.345 0.35 0.355 0.36 0.365 0.37 0.375 0.38 0.385 0.39 0.395 0.4 0.405 0.41 0.415 0.42 0.425 0.43 0.435 0.44 0.445 0.45 0.455 0.46 0.465 0.47 0.475 0.48 0.485 0.49 0.495 0.5 0.505 0.51 0.515 0.52 0.525 0.53 0.535 0.54 0.545 0.55 0.555 0.56 0.565 0.57 0.575 0.58 0.585 0.59 0.595 0.6 0.605 0.61 0.615 0.62 0.625 0.63 0.635 0.64 0.645 0.65 0.655 0.66 0.665 0.67 0.675 0.68 0.685 0.69 0.695 0.7 0.705 0.71 0.715 0.72 0.725 0.73 0.735 0.74 0.745 0.75 0.755 0.76 0.765 0.77 0.775 0.78 0.785 0.79 0.795 0.8 0.805 0.81 0.815 0.82 0.825 0.83 0.835 0.84 0.845 0.85 0.855 0.86 0.865 0.87 0.875 0.88 0.885 0.89 0.895 0.9 0.905 0.91 0.915 0.92 0.925 0.93 0.935 0.94 0.945 0.95 0.955 0.96 0.965 0.97 0.975 0.98 0.985 0.99 0.995 1.0' keyValue='0.006813 -0.9999 0.01227 -4.155 0.008468 -0.9999 0.01499 -4.17 0.0112 -0.9997 0.01951 -4.184 0.012 -0.9997 0.01954 -4.243 0.01241 -0.9997 0.01934 -4.282 0.0113 -0.9998 0.01751 -4.287 0.00833 -0.9999 0.01283 -4.293 0.005032 -1.0 0.007728 -4.296 1.064E-4 -1.0 1.6E-4 -4.315 -0.004939 -1.0 -0.007298 -4.331 -0.01123 -0.9998 -0.01653 -4.335 -0.01465 -0.9997 -0.0202 -4.396 -0.01819 -0.9996 -0.02355 -4.457 -0.01259 -0.9998 -0.01455 -4.568 -0.01216 -0.9998 -0.01333 -4.621 -0.01397 -0.9998 -0.01528 -4.623 0.02539 0.9993 0.02583 -1.589 0.0371 0.9987 0.0355 -1.528 0.04743 0.9978 0.04625 -1.548 0.04668 0.9979 0.04507 -1.538 0.04263 0.9982 0.04123 -1.539 0.01831 0.9997 0.01608 -1.442 0.002981 1.0 0.002377 -1.346 0.003686 1.0 0.002119 -1.044 0.0197 0.9998 0.006598 -0.6466 0.06883 0.9976 0.01236 -0.3561 0.1277 -0.9918 -0.009755 -0.1537 0.0265 -0.9996 -0.007593 -0.5582 0.00428 -1.0 -0.002994 -1.221 0.003623 -1.0 -0.003378 -1.501 0.003552 -1.0 -0.003945 -1.676 0.003677 -1.0 -0.004492 -1.77 0.003642 -1.0 -0.004669 -1.817 0.003532 -1.0 -0.004394 -1.787 0.003678 -1.0 -0.004347 -1.737 0.003838 -1.0 -0.004295 -1.683 0.00444 -1.0 -0.004325 -1.545 0.004366 -1.0 -0.004015 -1.487 0.003943 -1.0 -0.003682 -1.502 0.002829 -1.0 -0.002169 -1.308 0.001765 -1.0 -0.001138 -1.145 0.001966 -1.0 -9.92E-4 -0.9346 0.004464 -1.0 -0.001472 -0.6368 0.01489 -0.9999 -0.002438 -0.3246 0.0684 -0.9977 -0.002774 -0.08126 0.05839 0.9983 0.003113 -0.1067 0.02621 0.9997 0.003279 -0.249 0.02607 0.9997 0.003471 -0.2649 0.02794 0.9996 0.003665 -0.261 0.02929 0.9996 0.003668 -0.2492 0.03071 0.9995 0.003686 -0.239 0.03326 0.9994 0.003678 -0.2204 0.03103 0.9995 0.00367 -0.2355 0.02881 0.9996 0.00366 -0.2528 0.02226 0.9997 0.00383 -0.3409 0.01283 0.9999 0.003359 -0.5122 0.006523 1.0 0.002811 -0.8137 -0.001283 1.0 -6.491E-4 -0.9365 -0.005889 1.0 -0.003555 -1.086 -0.003506 1.0 -0.002509 -1.242 -0.002375 1.0 -0.001917 -1.358 -0.00105 1.0 -9.75E-4 -1.497 -5.828E-4 1.0 -5.423E-4 -1.499 0.0 1.0 0.0 -1.523 6.321E-4 1.0 6.21E-4 -1.553 -0.001247 -1.0 -0.001276 -4.689 -0.002221 -1.0 -0.002371 -4.647 6.834E-4 -1.0 7.693E-4 -4.594 0.002608 -1.0 0.003065 -4.552 0.005679 -1.0 0.00685 -4.526 0.001657 -1.0 0.002102 -4.476 -0.002623 -1.0 -0.003525 -4.421 -0.004588 -1.0 -0.006159 -4.422 -0.005234 -1.0 -0.007088 -4.414 -0.004443 -1.0 -0.006067 -4.406 -0.003333 -1.0 -0.004585 -4.399 -0.002337 -1.0 -0.003232 -4.394 -0.001732 -1.0 -0.002339 -4.417 -0.001067 -1.0 -0.001414 -4.434 -4.932E-4 -1.0 -6.638E-4 -4.42 0.00133 -1.0 0.001463 -4.617 -0.002762 1.0 -0.002598 -1.51 1.712E-4 1.0 1.324E-4 -1.317 -0.003318 1.0 -0.001938 -1.057 -0.008097 1.0 -0.003699 -0.857 -0.04174 0.9991 -0.01169 -0.5467 -0.1274 0.9917 -0.01805 -0.2839 -0.3406 0.9399 -0.0244 -0.1521 -0.9828 -0.1844 0.004405 -0.04859 -0.2223 -0.9748 0.01955 -0.18 -0.1959 -0.9805 0.01769 -0.1837 -0.1755 -0.9843 0.01672 -0.1929 -0.2006 -0.9795 0.01711 -0.1737 -0.2069 -0.9782 0.01709 -0.1686 -0.213 -0.9769 0.01709 -0.1639 -0.2005 -0.9796 0.01736 -0.1764 -0.2025 -0.9791 0.01743 -0.1754 -0.2127 -0.977 0.01741 -0.1671 -0.222 -0.9749 0.01722 -0.1588 -0.2296 -0.9731 0.01704 -0.1522 -0.2331 -0.9723 0.01676 -0.1476 -0.2018 -0.9793 0.01638 -0.1654 -0.1775 -0.984 0.01591 -0.1816 -0.1088 -0.9939 0.01501 -0.2757 -0.07828 -0.9968 0.01412 -0.3581 -0.0632 -0.9979 0.01267 -0.3964 -0.05145 -0.9986 0.01578 -0.5959 -0.04383 -0.9989 0.01929 -0.8299 -0.02789 -0.9995 0.01431 -0.9485 -0.02498 -0.9996 0.01456 -1.056 -0.03264 -0.9993 0.02078 -1.135 -0.04034 -0.9988 0.02832 -1.225 -0.04472 -0.9984 0.03358 -1.29 -0.05088 -0.9978 0.04226 -1.388 -0.05779 -0.997 0.05194 -1.467 -0.06605 -0.9958 0.06289 -1.526 -0.06953 -0.9953 0.06736 -1.544 -0.07211 -0.9949 0.07119 -1.563 -0.0676 -0.9954 0.06765 -1.576 -0.06018 -0.9964 0.05985 -1.569 -0.0499 -0.9976 0.049 -1.555 -0.04129 -0.9984 0.03873 -1.509 -0.03193 -0.9991 0.02935 -1.488 -0.02117 -0.9996 0.02068 -1.548 -0.02214 -0.9995 0.02215 -1.572 -0.02553 -0.9993 0.02612 -1.594 -0.03197 -0.9989 0.03307 -1.606 -0.03325 -0.9989 0.0339 -1.591 -0.0253 -0.9994 0.02416 -1.525 -0.01739 -0.9997 0.0154 -1.45 0.002328 -1.0 -0.001778 -1.304 0.005608 -1.0 -0.00414 -1.272 0.0096 -0.9999 -0.007223 -1.29 0.007995 -0.9999 -0.006446 -1.357 0.008529 -0.9999 -0.007984 -1.505 0.009671 -0.9999 -0.01052 -1.655 0.02633 -0.9989 -0.03954 -1.968 0.02941 -0.9971 -0.0705 -2.353 0.01406 -0.9956 -0.09264 -2.842 0.02508 -0.993 -0.1156 -2.717 0.03637 -0.9909 -0.1293 -2.598 0.05382 -0.993 -0.105 -2.2 0.05445 -0.9947 -0.08679 -2.026 0.04423 -0.9972 -0.06055 -1.882 0.06106 -0.9958 -0.06866 -1.692 0.06938 -0.9952 -0.06964 -1.579 0.08475 -0.9938 -0.07195 -1.414 0.07884 -0.9945 -0.06865 -1.438 0.07166 -0.9953 -0.06499 -1.478 0.05672 -0.9968 -0.05656 -1.571 0.0359 -0.9983 -0.04621 -1.822 0.01567 -0.9994 -0.02997 -2.178 0.01129 -0.9995 -0.02859 -2.39 0.006174 -0.9997 -0.02543 -2.665 0.003213 -0.9995 -0.03158 -2.939 4.052E-4 -0.9995 -0.03242 -3.117 -0.002454 -0.9995 -0.03144 -3.297 -0.004565 -0.9995 -0.03087 -3.435 -0.006414 -0.9995 -0.02982 -3.565 -0.006017 -0.9995 -0.03018 -3.535 -0.005782 -0.9995 -0.03043 -3.517 -0.004953 -0.9995 -0.03145 -3.454 -0.00336 -0.9995 -0.03152 -3.354 -0.001179 -0.9995 -0.03065 -3.218 0.001952 -0.9997 -0.02531 -2.988 0.004557 -0.9997 -0.02433 -2.771 0.007829 -0.9997 -0.02317 -2.49 0.007298 -0.9998 -0.0166 -2.313 0.006208 -0.9999 -0.01167 -2.164 0.004698 -1.0 -0.007807 -2.058 0.00454 -1.0 -0.007213 -2.018 0.004463 -1.0 -0.006813 -1.982 0.00443 -1.0 -0.006738 -1.978 0.004412 -1.0 -0.006705 -1.978 0.004378 -1.0 -0.006671 -1.98 0.004624 -1.0 -0.007342 -2.018 0.004843 -1.0 -0.007982 -2.051 0.005715 -0.9999 -0.00945 -2.054 0.005056 -0.9999 -0.008898 -2.108 0.003634 -1.0 -0.006937 -2.177 0.002201 -1.0 -0.005743 -2.41 6.766E-4 -1.0 -0.00403 -2.809 -6.182E-4 -1.0 -0.004311 -3.426 -0.001735 -1.0 -0.005669 -3.736 -0.002944 -1.0 -0.00691 -3.947 -0.004618 -0.9999 -0.009269 -4.066 -0.005489 -0.9999 -0.01031 -4.12 -0.005622 -0.9999 -0.01089 -4.094 -0.005248 -0.9999 -0.01027 -4.086 -0.004855 -0.9999 -0.00961 -4.077 -0.003567 -1.0 -0.007168 -4.065 -0.002444 -1.0 -0.004901 -4.067 -0.001167 -1.0 -0.002277 -4.089 -1.237E-4 -1.0 -2.417E-4 -4.088 9.202E-4 -1.0 0.001799 -4.087 0.001855 -1.0 0.003596 -4.094 0.002665 -1.0 0.005084 -4.107 0.003413 -1.0 0.006335 -4.13 0.003873 -1.0 0.00724 -4.124 0.004619 -1.0 0.008618 -4.126 0.006813 -0.9999 0.01227 -4.155'/>
<KeySensor DEF='keysensor'/>
<Switch DEF='DEBUG_TERRAIN' whichChoice='0'>
<Group DEF='TERRAIN-CONTAINER'>
<
CollidableShape DEF='
Road-v-001'
translation='
124.936 -0.5 -461.607'
containerField='
children'>
<Shape containerField='shape'>
<Appearance DEF='ROAD-APP'>
<Material emissiveColor='1.0 0.0 0.0'/>
</Appearance>
<Box size='1250.0 1.0 800.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
Road-v-002'
translation='
-417.631 -0.5 24.7947'
containerField='
children'>
<Shape containerField='shape'>
<Appearance USE='
ROAD-APP'/>
<Box size='200.0 1.0 250.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
Road-v-003'
translation='
675.143 -0.5 17.6217'
containerField='
children'>
<Shape containerField='shape'>
<Appearance USE='
ROAD-APP'/>
<Box size='200.0 1.0 250.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
Road-v-004'
translation='
138.008 -0.5 23.1087'
containerField='
children'>
<Shape containerField='shape'>
<Appearance USE='
ROAD-APP'/>
<Box size='1000.0 1.0 60.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
Road-v-006'
rotation='
0.0 0.0 -1.0 0.135494'
translation='
347.056 4.87479 -376.17'
containerField='
children'>
<Shape containerField='shape'>
<Appearance DEF='RAMP_APP'>
</Appearance>
<Box size='90.0 1.0 70.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
Road-v-007'
translation='
301.193 1.4 -376.315'
containerField='
children'>
<Shape containerField='shape'>
<Appearance USE='
ROAD-APP'/>
<Box size='3.0 20.0 70.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
Sand-v-001'
translation='
101.232 -0.55 -31.8107'
containerField='
children'>
<Shape containerField='shape'>
<Appearance DEF='SAND-APP'>
<Material ambientIntensity='0.258621' diffuseColor='0.58 0.27 0.01' shininess='0.07' specularColor='0.43 0.2 0.0'/>
<ImageTexture/>
</Appearance>
<Box size='1000.0 1.0 60.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
Sand-v-002'
translation='
108.906 -0.55 93.8712'
containerField='
children'>
<Shape containerField='shape'>
<Appearance USE='
SAND-APP'/>
<Box size='1000.0 1.0 100.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
WALL-v-001a'
translation='
750.0 10.0 -360.0'
containerField='
children'>
<Shape containerField='shape'>
<Appearance DEF='WALL-APP'>
<Material emissiveColor='0.5 0.5 0.5' transparency='0.2'/>
</Appearance>
<Box size='1.0 20.0 1000.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
WALL-v-001b'
translation='
-500.0 10.0 -360.0'
containerField='
children'>
<Shape containerField='shape'>
<Appearance USE='
WALL-APP'/>
<Box size='1.0 20.0 1000.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
WALL-v-001c'
translation='
125.0 10.0 140.99'
containerField='
children'>
<Shape containerField='shape'>
<Appearance USE='
WALL-APP'/>
<Box size='1250.0 20.0 1.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
WALL-v-001d'
translation='
125.0 10.0 -859.733'
containerField='
children'>
<Shape containerField='shape'>
<Appearance USE='
WALL-APP'/>
<Box size='1250.0 20.0 1.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
Wall-v-002'
translation='
-163.362 24.0 -589.528'
containerField='
children'>
<Shape containerField='shape'>
<Appearance USE='
WALL-APP'/>
<Box size='40.0 48.0 40.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
Wall-v-003'
translation='
-100.093 19.0 -587.841'
containerField='
children'>
<Shape DEF='SmallBulding' containerField='shape'>
<Appearance USE='
WALL-APP'/>
<Box size='40.0 38.0 40.0'/>
</Shape>
</
CollidableShape>
<
CollidableShape DEF='
Wall-v-004'
translation='
-314.972 19.0 -656.376'
containerField='
children'>
</
CollidableShape>
<
CollidableShape DEF='
Wall-v-005'
translation='
-314.723 19.0 -580.647'
containerField='
children'>
</
CollidableShape>
<
CollidableShape DEF='
Wall-v-006'
translation='
-269.737 19.0 -452.626'
containerField='
children'>
</
CollidableShape>
<
CollidableShape DEF='
Wall-v-007'
translation='
-217.782 19.0 -450.082'
containerField='
children'>
</
CollidableShape>
<
CollidableShape DEF='
Wall-v-008'
translation='
-83.8395 19.0 -351.859'
containerField='
children'>
</
CollidableShape>
<
CollidableShape DEF='
Wall-v-009'
translation='
-348.799 19.0 -511.969'
containerField='
children'>
</
CollidableShape>
<
CollidableShape DEF='
Wall-v-010'
translation='
-23.9812 19.0 -501.768'
containerField='
children'>
</
CollidableShape>
<
CollidableShape DEF='
Wall-v-011'
translation='
-101.759 19.0 -451.126'
containerField='
children'>
</
CollidableShape>
</Group>
</Switch>
<Script DEF='physicsSectorScript'>
<field name='sector1' type='SFTime' accessType='inputOnly'/>
<field name='sector2' type='SFTime' accessType='inputOnly'/>
<field name='sector3' type='SFTime' accessType='inputOnly'/>
<field name='sector4' type='SFTime' accessType='inputOnly'/>
<field name='sector5' type='SFTime' accessType='inputOnly'/>
<field name='sector6' type='SFTime' accessType='inputOnly'/>
<field name='sector7' type='SFTime' accessType='inputOnly'/>
<field name='sector8' type='SFTime' accessType='inputOnly'/>
<field name='sector9' type='SFTime' accessType='inputOnly'/>
<field name='sector1Enabled' type='SFBool' accessType='outputOnly'/>
<field name='sector2Enabled' type='SFBool' accessType='outputOnly'/>
<field name='sector3Enabled' type='SFBool' accessType='outputOnly'/>
<field name='sector4Enabled' type='SFBool' accessType='outputOnly'/>
<field name='sector5Enabled' type='SFBool' accessType='outputOnly'/>
<field name='sector6Enabled' type='SFBool' accessType='outputOnly'/>
<field name='sector7Enabled' type='SFBool' accessType='outputOnly'/>
<field name='sector8Enabled' type='SFBool' accessType='outputOnly'/>
<field name='sector9Enabled' type='SFBool' accessType='outputOnly'/>
<![CDATA[
ecmascript:
function sector1(val) {
if (val) {
Browser.println('Physics Sector1');
sector1Enabled = true;
sector2Enabled = true;
sector3Enabled = false;
sector4Enabled = false;
sector5Enabled = false;
sector6Enabled = false;
sector7Enabled = false;
sector8Enabled = false;
sector9Enabled = false;
}
}
function sector2(val) {
if (val) {
Browser.println('Physics Sector2');
sector1Enabled = true;
sector2Enabled = true;
sector3Enabled = true;
sector4Enabled = false;
sector5Enabled = false;
sector6Enabled = false;
sector7Enabled = false;
sector8Enabled = false;
sector9Enabled = false;
}
}
function sector3(val) {
if (val) {
Browser.println('Physics Sector3');
sector1Enabled = false;
sector2Enabled = true;
sector3Enabled = true;
sector4Enabled = true;
sector5Enabled = false;
sector6Enabled = false;
sector7Enabled = false;
sector8Enabled = false;
sector9Enabled = false;
}
}
function sector4(val) {
if (val) {
Browser.println('Physics Sector4');
sector1Enabled = false;
sector2Enabled = false;
sector3Enabled = true;
sector4Enabled = true;
sector5Enabled = true;
sector6Enabled = false;
sector7Enabled = false;
sector8Enabled = false;
sector9Enabled = false;
}
}
function sector5(val) {
if (val) {
Browser.println('Physics Sector5');
sector1Enabled = false;
sector2Enabled = false;
sector3Enabled = false;
sector4Enabled = true;
sector5Enabled = true;
sector6Enabled = true;
sector7Enabled = false;
sector8Enabled = false;
sector9Enabled = false;
}
}
function sector6(val) {
if (val) {
Browser.println('Physics Sector6');
sector1Enabled = false;
sector2Enabled = false;
sector3Enabled = false;
sector4Enabled = false;
sector5Enabled = true;
sector6Enabled = true;
sector7Enabled = true;
sector8Enabled = false;
sector9Enabled = false;
}
}
function sector7(val) {
if (val) {
Browser.println('Physics Sector7');
sector1Enabled = false;
sector2Enabled = false;
sector3Enabled = false;
sector4Enabled = false;
sector5Enabled = false;
sector6Enabled = true;
sector7Enabled = true;
sector8Enabled = true;
sector9Enabled = false;
}
}
function sector8(val) {
if (val) {
Browser.println('Physics Sector8');
sector1Enabled = false;
sector2Enabled = false;
sector3Enabled = false;
sector4Enabled = false;
sector5Enabled = false;
sector6Enabled = false;
sector7Enabled = true;
sector8Enabled = true;
sector9Enabled = true;
}
}
function sector9(val) {
if (val) {
Browser.println('Physics Sector9');
sector1Enabled = true;
sector2Enabled = false;
sector3Enabled = false;
sector4Enabled = false;
sector5Enabled = false;
sector6Enabled = false;
sector7Enabled = false;
sector8Enabled = true;
sector9Enabled = true;
}
}
function sector9(val) {
if (val) {
Browser.println('Physics Sector9');
sector1Enabled = true;
sector2Enabled = false;
sector3Enabled = false;
sector4Enabled = false;
sector5Enabled = false;
sector6Enabled = false;
sector7Enabled = false;
sector8Enabled = true;
sector9Enabled = true;
}
}
]]>
</Script>
<Box USE='
CHASSIS-BOX' containerField='massDensityModel'/>
<
CollidableShape DEF='
CAR-BODY-GEOM'
containerField='
geometry'>
<Shape containerField='shape'>
</Shape>
</
CollidableShape>
</
RigidBody>
<Sphere USE='
WHEEL-MASS' containerField='massDensityModel'/>
<
CollidableShape DEF='
FRONT-LEFT-WHEEL-GEOM'
containerField='
geometry'>
<Shape DEF='WHEEL-GEOM' containerField='shape'>
</Shape>
</
CollidableShape>
</
RigidBody>
</
RigidBody>
<Sphere USE='
WHEEL-MASS' containerField='massDensityModel'/>
<
CollidableShape DEF='
BACK-LEFT-WHEEL-GEOM'
containerField='
geometry'>
</
CollidableShape>
</
RigidBody>
</
RigidBody>
</
RigidBodyCollection>
<
CollidableShape USE='
FRONT-LEFT-WHEEL-GEOM'
containerField='
collidables'/>
<
CollidableShape USE='
FRONT-RIGHT-WHEEL-GEOM'
containerField='
collidables'/>
<
CollidableShape USE='
BACK-LEFT-WHEEL-GEOM'
containerField='
collidables'/>
<
CollidableShape USE='
BACK-RIGHT-WHEEL-GEOM'
containerField='
collidables'/>
<
CollidableShape USE='
CAR-BODY-GEOM'
containerField='
collidables'/>
<
CollidableShape USE='
Road-v-001'
containerField='
collidables'/>
<
CollidableShape USE='
Road-v-002'
containerField='
collidables'/>
<
CollidableShape USE='
Road-v-003'
containerField='
collidables'/>
<
CollidableShape USE='
Road-v-004'
containerField='
collidables'/>
<
CollidableShape USE='
Road-v-006'
containerField='
collidables'/>
<
CollidableShape USE='
Road-v-007'
containerField='
collidables'/>
<
CollidableShape USE='
Sand-v-001'
containerField='
collidables'/>
<
CollidableShape USE='
Sand-v-002'
containerField='
collidables'/>
<
CollidableShape USE='
WALL-v-001a'
containerField='
collidables'/>
<
CollidableShape USE='
WALL-v-001b'
containerField='
collidables'/>
<
CollidableShape USE='
WALL-v-001c'
containerField='
collidables'/>
<
CollidableShape USE='
WALL-v-001d'
containerField='
collidables'/>
<
CollidableShape USE='
Wall-v-002'
containerField='
collidables'/>
<
CollidableShape USE='
Wall-v-003'
containerField='
collidables'/>
<
CollidableShape USE='
Wall-v-004'
containerField='
collidables'/>
<
CollidableShape USE='
Wall-v-005'
containerField='
collidables'/>
<
CollidableShape USE='
Wall-v-006'
containerField='
collidables'/>
<
CollidableShape USE='
Wall-v-007'
containerField='
collidables'/>
<
CollidableShape USE='
Wall-v-008'
containerField='
collidables'/>
<
CollidableShape USE='
Wall-v-009'
containerField='
collidables'/>
<
CollidableShape USE='
Wall-v-010'
containerField='
collidables'/>
<
CollidableShape USE='
Wall-v-011'
containerField='
collidables'/>
</
CollisionCollection>
</CollisionSensor>
<field name='resetRequest' type='SFBool' accessType='inputOnly'/>
<field name='startingPosition' type='SFVec3f' accessType='inputOutput'/>
<field name='startingOrientation' type='SFRotation' accessType='inputOutput'/>
<field name='wheelBodyRadius' type='SFFloat' accessType='initializeOnly'/>
<field name='chassisBodyDimensions' type='SFVec3f' accessType='initializeOnly'/>
<field name='speedLimit' type='SFFloat' accessType='initializeOnly'/>
<field name='steeringLimitAngle' type='SFFloat' accessType='initializeOnly'/>
<field name='steeringDeadspot' type='SFFloat' accessType='initializeOnly'/>
<field name='maxEngineTorque' type='SFFloat' accessType='initializeOnly'/>
<field name='maxBrakingTorque' type='SFFloat' accessType='initializeOnly'/>
<field name='maxEngineRevs' type='SFFloat' accessType='initializeOnly'/>
<field name='roadFrictionCoefficient' type='SFFloat' accessType='inputOutput'/>
<field name='wallFrictionCoefficient' type='SFFloat' accessType='inputOutput'/>
<field name='sandFrictionCoefficient' type='SFFloat' accessType='inputOutput'/>
<field name='grassFrictionCoefficient' type='SFFloat' accessType='inputOutput'/>
<field name='otherFrictionCoefficient' type='SFFloat' accessType='inputOutput'/>
<field name='sideSlipCoefficient' type='SFFloat' accessType='inputOutput'/>
<field name='brakeBias' type='SFFloat' accessType='inputOutput'/>
<field name='engineFrontPercentage' type='SFFloat' accessType='inputOutput'/>
<field name='engineRearPercentage' type='SFFloat' accessType='inputOutput'/>
<field name='dragCoefficient' type='SFFloat' accessType='inputOutput'/>
<field name='downforceCoefficient' type='SFFloat' accessType='inputOutput'/>
<field name='reverseSelected' type='SFBool' accessType='inputOnly'/>
<field name='carVelocity' type='SFVec3f' accessType='inputOnly'/>
<field name='carOrientation' type='SFRotation' accessType='inputOnly'/>
<field name='currentSteeringAngle' type='SFFloat' accessType='inputOnly'/>
<field name='wheelAcceleratorInput' type='SFFloat' accessType='inputOnly'/>
<field name='wheelDirectionInput' type='SFFloat' accessType='inputOnly'/>
<field name='frontWheelOrientation' type='SFVec3f' accessType='inputOnly'/>
<field name='rearWheelOrientation' type='SFVec3f' accessType='inputOnly'/>
<field name='correctedChassisOrientation' type='SFRotation' accessType='outputOnly'/>
<field name='frontWheelMinStop' type='SFFloat' accessType='outputOnly'/>
<field name='frontWheelMaxStop' type='SFFloat' accessType='outputOnly'/>
<field name='frontLeftWheelSpeed' type='SFFloat' accessType='outputOnly'/>
<field name='frontRightWheelSpeed' type='SFFloat' accessType='outputOnly'/>
<field name='rearLeftWheelSpeed' type='SFFloat' accessType='outputOnly'/>
<field name='rearRightWheelSpeed' type='SFFloat' accessType='outputOnly'/>
<field name='frontWheelTorque' type='SFFloat' accessType='outputOnly'/>
<field name='rearWheelTorque' type='SFFloat' accessType='outputOnly'/>
<field name='frontLeftAxleAxis' type='SFVec3f' accessType='outputOnly'/>
<field name='frontRightAxleAxis' type='SFVec3f' accessType='outputOnly'/>
<field name='rearLeftAxleAxis' type='SFVec3f' accessType='outputOnly'/>
<field name='rearRightAxleAxis' type='SFVec3f' accessType='outputOnly'/>
<field name='frictionForces' type='MFVec3f' accessType='outputOnly'/>
<field name='chassisPosition_reset' type='SFVec3f' accessType='outputOnly'/>
<field name='chassisOrientation_reset' type='SFRotation' accessType='outputOnly'/>
<field name='frontLeftWheelPosition_reset' type='SFVec3f' accessType='outputOnly'/>
<field name='frontLeftWheelOrientation_reset' type='SFRotation' accessType='outputOnly'/>
<field name='frontRightWheelPosition_reset' type='SFVec3f' accessType='outputOnly'/>
<field name='frontRightWheelOrientation_reset' type='SFRotation' accessType='outputOnly'/>
<field name='backLeftWheelPosition_reset' type='SFVec3f' accessType='outputOnly'/>
<field name='backLeftWheelOrientation_reset' type='SFRotation' accessType='outputOnly'/>
<field name='backRightWheelPosition_reset' type='SFVec3f' accessType='outputOnly'/>
<field name='backRightWheelOrientation_reset' type='SFRotation' accessType='outputOnly'/>
<field name='enablePhysics' type='SFBool' accessType='outputOnly'/>
<field name='speed' type='SFFloat' accessType='outputOnly'/>
<field name='revs' type='SFFloat' accessType='outputOnly'/>
<field name='brakesApplied' type='SFBool' accessType='outputOnly'/>
<field name='reversing' type='SFBool' accessType='outputOnly'/>
<field name='chassis' type='SFNode' accessType='initializeOnly'>
<
CollidableShape USE='
CAR-BODY-GEOM'
containerField='
children'/>
</field>
<field name='frontLeftWheel' type='SFNode' accessType='initializeOnly'>
</field>
<field name='frontRightWheel' type='SFNode' accessType='initializeOnly'>
</field>
<field name='backLeftWheel' type='SFNode' accessType='initializeOnly'>
</field>
<field name='backRightWheel' type='SFNode' accessType='initializeOnly'>
</field>
<field name='bigTerrainBox' type='MFNode' accessType='initializeOnly'/>
<field name='roadTerrain' type='MFNode' accessType='initializeOnly'>
<
CollidableShape USE='
Road-v-001'
containerField='
children'/>
<
CollidableShape USE='
Road-v-002'
containerField='
children'/>
<
CollidableShape USE='
Road-v-003'
containerField='
children'/>
<
CollidableShape USE='
Road-v-004'
containerField='
children'/>
<
CollidableShape USE='
Road-v-006'
containerField='
children'/>
<
CollidableShape USE='
Road-v-007'
containerField='
children'/>
</field>
<field name='sandTerrain' type='MFNode' accessType='initializeOnly'>
<
CollidableShape USE='
Sand-v-001'
containerField='
children'/>
<
CollidableShape USE='
Sand-v-002'
containerField='
children'/>
</field>
<field name='grassTerrain' type='MFNode' accessType='initializeOnly'/>
<field name='wallTerrain' type='MFNode' accessType='initializeOnly'>
<
CollidableShape USE='
WALL-v-001a'
containerField='
children'/>
<
CollidableShape USE='
WALL-v-001b'
containerField='
children'/>
<
CollidableShape USE='
WALL-v-001c'
containerField='
children'/>
<
CollidableShape USE='
WALL-v-001d'
containerField='
children'/>
<
CollidableShape USE='
Wall-v-002'
containerField='
children'/>
<
CollidableShape USE='
Wall-v-003'
containerField='
children'/>
<
CollidableShape USE='
Wall-v-004'
containerField='
children'/>
<
CollidableShape USE='
Wall-v-005'
containerField='
children'/>
<
CollidableShape USE='
Wall-v-006'
containerField='
children'/>
<
CollidableShape USE='
Wall-v-007'
containerField='
children'/>
<
CollidableShape USE='
Wall-v-008'
containerField='
children'/>
<
CollidableShape USE='
Wall-v-009'
containerField='
children'/>
<
CollidableShape USE='
Wall-v-010'
containerField='
children'/>
<
CollidableShape USE='
Wall-v-011'
containerField='
children'/>
</field>
<field name='bodies' type='MFNode' accessType='initializeOnly'>
</field>
<field name='joints' type='MFNode' accessType='initializeOnly'>
</
DoubleAxisHingeJoint>
</
DoubleAxisHingeJoint>
</
DoubleAxisHingeJoint>
</
DoubleAxisHingeJoint>
</field>
<field name='collisionContacts' type='MFNode' accessType='inputOnly'/>
<field name='correctedContacts' type='MFNode' accessType='outputOnly'/>
<field name='connectJoints' type='MFNode' accessType='outputOnly'/>
</Script>
<field name='actionKeyPress' type='SFInt32' accessType='inputOnly'/>
<field name='decay' type='SFFloat' accessType='inputOnly'/>
<field name='dir' type='SFFloat' accessType='outputOnly'/>
<field name='accel' type='SFFloat' accessType='outputOnly'/>
<field name='reverse' type='SFBool' accessType='outputOnly'/>
<field name='reset' type='SFBool' accessType='outputOnly'/>
<![CDATA[
ecmascript:
var accelVar = 0;
var dirVar = 0;
var accelFactor = 0.1;
var dirFactor = 0.5;
var decayVar = 0.1;
var applyDecay = false;
function decay(val) {
if (!applyDecay)
return;
if (dir >= decayVar) {
dir = dir - decayVar;
if (dir < -1)
dir = -1;
} else if (dir <= -decayVar) {
dir = dir + decayVar;
if (dir > 1)
dir = 1;
} else {
dir = 0;
applyDecay = false;
}
}
function actionKeyPress(val) {
applyDecay = true;
if (val == 17) {
accelVar = accelVar + accelFactor;
if (accelVar > 1)
accelVar = 1.0;
accel = accelVar;
} else if (val == 18) {
accelVar = accelVar - accelFactor;
if (accelVar < -1)
accelVar = -1.0;
accel = accelVar;
} else if (val == 19) {
dirVar = dirVar - dirFactor;
if (dirVar < -1)
dirVar = -1.0;
dir = dirVar;
} else if (val == 20) {
dirVar = dirVar + dirFactor;
if (dirVar > 1)
dirVar = 1.0;
dir = dirVar;
} else {
dir = 0;
accel = 0;
}
}
]]>
</Script>
<field name='speed' type='SFFloat' accessType='inputOnly'/>
<field name='revs' type='SFFloat' accessType='inputOnly'/>
<field name='brakesApplied' type='SFBool' accessType='inputOnly'/>
<field name='reversing' type='SFBool' accessType='inputOnly'/>
<field name='maxSpeed' type='SFFloat' accessType='initializeOnly'/>
<field name='brakeLightColor' type='SFColor' accessType='outputOnly'/>
<field name='reverseLightColor' type='SFColor' accessType='outputOnly'/>
<field name='speedScale' type='SFVec3f' accessType='outputOnly'/>
<field name='speedFraction' type='SFFloat' accessType='outputOnly'/>
<![CDATA[
ecmascript:
function brakesApplied(val) {
if(val)
brakeLightColor.r = 1;
else
brakeLightColor.r = 0.1;
}
function reversing(val) {
if(val) {
reverseLightColor.r = 1;
reverseLightColor.g = 1;
reverseLightColor.b = 1;
} else {
reverseLightColor.r = 0.1;
reverseLightColor.g = 0.1;
reverseLightColor.b = 0.1;
}
}
function speed(val) {
speedScale.x = 1;
speedScale.y = val / maxSpeed;
speedScale.z = 1;
speedFraction = val / maxSpeed;
}
]]>
</Scene>