<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
<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 ' >
<head>
<component level='2name='RigidBodyPhysics'/>
<meta name='titlecontent=' BallBounceSimple.x3d '/>
<meta name='descriptioncontent='Example scene for RigidBodyPhysics component'/>
<meta name='creatorcontent='Alan Hudson and Justin Couch'/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='1 January 2008'/>
<meta name='referencecontent='originals/ball_bounce_simple.x3dv'/>
<meta name='translatedcontent='26 December 2008'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='referencecontent=' http://www.xj3d.org/extensions/index.html#Physics '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/specifications/ISO-IEC-FDIS-19775-1.2-X3D-AbstractSpecification/Part01/components/rigid_physics.html '/>
<meta name=' warning content=' under development '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounceSimple.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='generatorcontent='Xj3D converter, http://www.xj3d.org'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: BALL-GEOM, BODY-1, BODY-COLLECTION, COLLISION-GROUP, COLLISION-OUTPUT, GROUND-GEOM

Index for Viewpoint node: Viewpoint_1
-->
<Scene>
<WorldInfo title='BallBounceSimple.x3d'/>
<Viewpoint position='0.0 0.0 4.0'/>
<Group>
<CollidableShape DEF='BALL-GEOMcontainerField='children'>
<Shape containerField='shape'>
<Appearance>
<Material emissiveColor='1.0 0.0 0.0'/>
</Appearance>
<Sphere radius='0.1'/>
</Shape>
</CollidableShape>
<CollidableShape DEF='GROUND-GEOMtranslation='0.0 -0.5 0.0containerField='children'>
<Shape containerField='shape'>
<Appearance>
<Material emissiveColor='0.0 1.0 0.0'/>
</Appearance>
<Box size='20.0 0.1 20.0'/>
</Shape>
</CollidableShape>
</Group>
<!-- ROUTE information for BODY-COLLECTION node:  [from COLLISION-OUTPUT.contacts to set_contacts ] -->
<RigidBodyCollection DEF='BODY-COLLECTIONcontainerField='children'>
<RigidBody DEF='BODY-1containerField='bodiesposition='0.0 2.0 0.0'>
<CollidableShape USE=' BALL-GEOMcontainerField='geometry'/>
</RigidBody>
</RigidBodyCollection>
<!-- ROUTE information for COLLISION-OUTPUT node:  [from contacts to BODY-COLLECTION.set_contacts ] -->
<CollisionSensor DEF='COLLISION-OUTPUT'>
<CollisionCollection DEF='COLLISION-GROUPbounce='1.0containerField='colliderminBounceSpeed='1.0'>
<CollidableShape USE=' BALL-GEOMcontainerField='collidables'/>
<CollidableShape USE=' GROUND-GEOMcontainerField='collidables'/>
</CollisionCollection>
</CollisionSensor>
< ROUTE  fromNode=' COLLISION-OUTPUT' fromField='contacts' toNode=' BODY-COLLECTION' toField='set_contacts'/>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: BALL-GEOM, BODY-1, BODY-COLLECTION, COLLISION-GROUP, COLLISION-OUTPUT, GROUND-GEOM

Index for Viewpoint node: Viewpoint_1
-->

Event Graph ROUTE Table with 1 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

COLLISION-OUTPUT
CollisionSensor
contacts
MFNode

ROUTE
event to
(1)
BODY-COLLECTION
RigidBodyCollection
set_contacts
MFNode


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounceSimpleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounceSimple.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. -->