CollisionCollection

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
DEF xs:ID optional
USE xs:IDREF optional
appliedParameters MFString "BOUNCE" optional
Array of appliedParametersValues. Note that strict validation of appliedParameters enumeration values does not occur via schema since MFString allows any value in any order.
bounce restriction of SFFloat 0 optional
class xs:NMTOKENS optional
containerField xs:NMTOKEN collider optional
enabled SFBool true optional
frictionCoefficients SFVec2f 0 0 optional
minBounceSpeed restriction of SFFloat 0.1 optional
slipFactors SFVec2f 0 0 optional
softnessConstantForceMix restriction of SFFloat 0.0001 optional
softnessErrorCorrection restriction of SFFloat 0.8 optional
surfaceSpeed SFVec2f 0 0 optional

Used By

Source

<xs:element name="CollisionCollection">
  <xs:annotation>
    <xs:appinfo>
      <xs:attribute name="appliedParameters" type="appliedParametersValues"/>
      <xs:element name="collidables" type="MFNode" fixed="inputOutputField" default="X3DNBodyCollisionSpaceNode|X3DNBodyCollidableNode"/>
      <xs:attribute name="componentName" type="xs:NMTOKEN" fixed="RigidBodyPhysics"/>
      <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
    </xs:appinfo>
    <xs:documentation source="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rigid_physics.html#CollisionCollection"/>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="X3DNode">
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:annotation>
            <xs:documentation>collidables</xs:documentation>
          </xs:annotation>
          <xs:element ref="CollidableOffset"/>
          <xs:element ref="CollidableShape"/>
          <xs:element ref="CollisionSpace"/>
          <xs:element ref="ProtoInstance">
            <xs:annotation>
              <xs:documentation>Appropriately typed substitution node</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:choice>
        <xs:attribute name="appliedParameters" type="MFString" default=""BOUNCE"">
          <xs:annotation>
            <xs:documentation>Array of appliedParametersValues. Note that strict validation of appliedParameters enumeration values does not occur via schema since MFString allows any value in any order.</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="bounce" default="0">
          <xs:simpleType>
            <xs:restriction base="SFFloat">
              <xs:minInclusive value="0"/>
              <xs:maxInclusive value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="enabled" type="SFBool" default="true"/>
        <xs:attribute name="frictionCoefficients" type="SFVec2f" default="0 0">
          <xs:annotation>
            <xs:appinfo>
              <xs:minInclusive value="0"/>
            </xs:appinfo>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="minBounceSpeed" default="0.1">
          <xs:simpleType>
            <xs:restriction base="SFFloat">
              <xs:minInclusive value="0"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="slipFactors" type="SFVec2f" default="0 0"/>
        <xs:attribute name="softnessConstantForceMix" default="0.0001">
          <xs:simpleType>
            <xs:restriction base="SFFloat">
              <xs:minInclusive value="0"/>
              <xs:maxInclusive value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="softnessErrorCorrection" default="0.8">
          <xs:simpleType>
            <xs:restriction base="SFFloat">
              <xs:minInclusive value="0"/>
              <xs:maxInclusive value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="surfaceSpeed" type="SFVec2f" default="0 0"/>
        <xs:attribute name="containerField" type="xs:NMTOKEN" default="collider"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

Sample