X3D Model Documentation: UniversalJointExample.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
  3  <X3D profile='Immersive' version='3.2 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.2.xsd'>
  4       <head>
  5            <component level='2name='RigidBodyPhysics'/>
  6            <meta name='titlecontent='UniversalJointExample.x3d'/>
  7            <meta name='descriptioncontent='Example scene for RigidBodyPhysics component'/>
  8            <meta name='creatorcontent='Alan Hudson and Justin Couch'/>
  9            <meta name='translatorcontent='Don Brutzman'/>
 10            <meta name='createdcontent='1 January 2008'/>
 11            <meta name='translatedcontent='26 December 2008'/>
 12            <meta name='modifiedcontent='17 June 2020'/>
 13            <meta name='referencecontent='http://www.xj3d.org/extensions/index.html#Physics'/>
 14            <meta name='referencecontent='originals/universal_joint.x3dv'/>
 15            <meta name='referencecontent='https://www.web3d.org/x3d/specifications/ISO-IEC-FDIS-19775-1.2-X3D-AbstractSpecification/Part01/components/rigid_physics.html'/>
 16            <meta name=' warning content=' under development '/>
 17            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/UniversalJointExample.x3d'/>
 18            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 19            <meta name='licensecontent='../../license.html'/>
 20       </head>
<!--

<!-- -->

<!-- to top Index for DEF nodes: BODY-1, BODY-2, BOX-GEOM-1, BOX-GEOM-2
-->
 21       <Scene>
 22            <WorldInfo title='UniversalJointExample.x3d'/>
 23            <Group>
 24 
               <!-- CollidableShape BOX-GEOM-1 is a DEF node that has 1 USE node: USE_1 -->
               <CollidableShape DEF='BOX-GEOM-1containerField='children'>
 25                      <Shape containerField='shape'>
 26                           <Appearance>
 27                                <Material emissiveColor='1.0 0.0 0.0'/>
 28                           </Appearance>
 29                           <Box size='1.0 0.2 0.2'/>
 30                      </Shape>
 31                 </CollidableShape>
 32 
               <!-- CollidableShape BOX-GEOM-2 is a DEF node that has 1 USE node: USE_1 -->
               <CollidableShape DEF='BOX-GEOM-2containerField='children'>
 33                      <Shape containerField='shape'>
 34                           <Appearance>
 35                                <Material emissiveColor='0.0 0.0 1.0'/>
 36                           </Appearance>
 37                           <Box size='1.0 0.2 0.2'/>
 38                      </Shape>
 39                 </CollidableShape>
 40            </Group>
 41            <RigidBodyCollection containerField='children'>
 42 
               <!-- RigidBody BODY-1 is a DEF node that has 1 USE node: USE_1 -->
               <RigidBody DEF='BODY-1angularVelocity='0.5 0.0 0.0containerField='bodiesmass='0.1position='0.5 0.0 0.0useGlobalGravity='false'>
 43                      <CollidableShape USE='BOX-GEOM-1containerField='geometry'/>
 44                 </RigidBody>
 45 
               <!-- RigidBody BODY-2 is a DEF node that has 1 USE node: USE_1 -->
               <RigidBody DEF='BODY-2angularDampingFactor='0containerField='bodiesmass='0.1orientation='0.0 0.0 1.0 0.7854position='-0.35355 -0.35355 0.0useGlobalGravity='false'>
 46                      <CollidableShape USE='BOX-GEOM-2containerField='geometry'/>
 47                 </RigidBody>
 48                 <UniversalJoint axis1='0.7071 0.7071 0.0axis2='0.0 0.0 1.0containerField='joints'>
 49                      <RigidBody USE='BODY-1containerField='body1'/>
 50                      <RigidBody USE='BODY-2containerField='body2'/>
 51                 </UniversalJoint>
 52            </RigidBodyCollection>
 53       </Scene>
 54  </X3D>
<!--

<!-- -->

<!-- to top Index for DEF nodes: BODY-1, BODY-2, BOX-GEOM-1, BOX-GEOM-2
-->
X3D Tooltips element index: Appearance, Box, CollidableShape, component, Group, head, Material, meta, RigidBody, RigidBodyCollection, Scene, Shape, UniversalJoint, WorldInfo, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/UniversalJointExampleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/UniversalJointExample.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->