element CollisionSensor
diagram x3d-3.3_diagrams/x3d-3.3_p28.png
type extension of X3DSensorNode
properties
content complex
children IS MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString CollisionCollection ProtoInstance
used by
group ChildContentModelFull
attributes
Name  Type  Use  Default  Fixed  Annotation
DEF  xs:ID        
appinfo

DEF defines a unique ID name for each node, referenceable by other nodes.
USE  xs:IDREF        
appinfo

USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).
class  xs:NMTOKENS        
appinfo

The class attribute is a space-separated list of classes, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
enabled  SFBool    true    
containerField  xs:NMTOKEN    children    
annotation
appinfo
<xs:element name="collider" type="SFNode" fixed="inputOutputField" default="CollisionCollection"/>
<xs:element name="intersections" type="MFNode" fixed="outputOnlyField" default="X3DNBodyCollidableNode"/>
<xs:element name="contacts" type="MFNode" fixed="outputOnlyField" default="Contact">
<xs:annotation>
<xs:appinfo>
<xs:attribute name="componentName" type="componentNameChoices" fixed="RigidBodyPhysics"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:attribute name="componentName" type="componentNameChoices" fixed="RigidBodyPhysics"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
                CollisionSensor generates collision-detection events.
source <xs:element name="CollisionSensor">
 
<xs:annotation>
   
<xs:appinfo>
     
<xs:element name="collider" type="SFNode" fixed="inputOutputField" default="CollisionCollection"/>
     
<xs:element name="intersections" type="MFNode" fixed="outputOnlyField" default="X3DNBodyCollidableNode"/>
     
<xs:element name="contacts" type="MFNode" fixed="outputOnlyField" default="Contact">
       
<xs:annotation>
         
<xs:appinfo>
           
<xs:attribute name="componentName" type="componentNameChoices" fixed="RigidBodyPhysics"/>
           
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
         
</xs:appinfo>
       
</xs:annotation>
     
</xs:element>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="RigidBodyPhysics"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
                CollisionSensor generates collision-detection events.
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rigid_physics.html#CollisionSensor"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="X3DSensorNode">
       
<xs:choice minOccurs="0" maxOccurs="1">
         
<xs:annotation>
           
<xs:documentation>collider</xs:documentation>
         
</xs:annotation>
         
<xs:element ref="CollisionCollection"/>
         
<xs:element ref="ProtoInstance">
           
<xs:annotation>
             
<xs:documentation>Appropriately typed substitution node</xs:documentation>
           
</xs:annotation>
         
</xs:element>
       
</xs:choice>
       
<xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>
     
</xs:extension>
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute CollisionSensor/@containerField
type xs:NMTOKEN
properties
default children
source <xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy