RigidBody

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
DEF xs:ID optional
USE xs:IDREF optional
angularDampingFactor SFFloat 0.001 optional
angularVelocity SFVec3f 0 0 0 optional
autoDamp SFBool false optional
autoDisable SFBool false optional
centerOfMass SFVec3f 0 0 0 optional
class xs:NMTOKENS optional
containerField restriction of xs:NMTOKEN bodies optional
disableAngularSpeed SFFloat 0 optional
disableLinearSpeed SFFloat 0 optional
disableTime SFTime 0 optional
enabled SFBool true optional
finiteRotationAxis SFVec3f 0 1 0 optional
fixed SFBool false optional
forces MFVec3f optional
inertia SFMatrix3f 1 0 0 0 1 0 0 0 1 optional
linearDampingFactor SFFloat 0.001 optional
linearVelocity SFVec3f 0 0 0 optional
mass SFFloat 1 optional
orientation SFRotation 0 0 1 0 optional
position SFVec3f 0 0 0 optional
torques MFVec3f optional
useFiniteRotation SFBool false optional
useGlobalGravity SFBool true optional

Used By

Source

<xs:element name="RigidBody">
  <xs:annotation>
    <xs:appinfo>
      <xs:element name="geometry" type="MFNode" fixed="inputOutputField" default="X3DNBodyCollidableNode"/>
      <xs:element name="massDensityModel" type="SFNode" fixed="inputOutputField" default="Sphere|Box|Cone"/>
      <xs:attribute name="componentName" type="xs:NMTOKEN" fixed="RigidBodyPhysics"/>
      <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
    </xs:appinfo>
    <xs:documentation source="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rigid_physics.html#RigidBody"/>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="X3DNode">
        <xs:group ref="RigidBodyContentModel" minOccurs="0"/>
        <xs:attribute name="angularDampingFactor" type="SFFloat" default="0.001"/>
        <xs:attribute name="angularVelocity" type="SFVec3f" default="0 0 0"/>
        <xs:attribute name="autoDamp" type="SFBool" default="false"/>
        <xs:attribute name="autoDisable" type="SFBool" default="false"/>
        <xs:attribute name="centerOfMass" type="SFVec3f" default="0 0 0"/>
        <xs:attribute name="disableAngularSpeed" type="SFFloat" default="0"/>
        <xs:attribute name="disableLinearSpeed" type="SFFloat" default="0"/>
        <xs:attribute name="disableTime" type="SFTime" default="0"/>
        <xs:attribute name="enabled" type="SFBool" default="true"/>
        <xs:attribute name="finiteRotationAxis" type="SFVec3f" default="0 1 0"/>
        <xs:attribute name="fixed" type="SFBool" default="false"/>
        <xs:attribute name="forces" type="MFVec3f"/>
        <xs:attribute name="inertia" type="SFMatrix3f" default="1 0 0 0 1 0 0 0 1"/>
        <xs:attribute name="linearDampingFactor" type="SFFloat" default="0.001"/>
        <xs:attribute name="linearVelocity" type="SFVec3f" default="0 0 0"/>
        <xs:attribute name="mass" type="SFFloat" default="1"/>
        <xs:attribute name="position" type="SFVec3f" default="0 0 0"/>
        <xs:attribute name="orientation" type="SFRotation" default="0 0 1 0"/>
        <xs:attribute name="torques" type="MFVec3f"/>
        <xs:attribute name="useFiniteRotation" type="SFBool" default="false"/>
        <xs:attribute name="useGlobalGravity" type="SFBool" default="true"/>
        <xs:attribute name="containerField" default="bodies">
          <xs:simpleType>
            <xs:restriction base="xs:NMTOKEN">
              <xs:enumeration value="body1"/>
              <xs:enumeration value="body2"/>
              <xs:enumeration value="bodies"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

Sample