Difference between revisions of "Collision"

From Web3D.org
Jump to: navigation, search
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
* [[Node Reference]]
 
* [[Node Reference]]
 
==Collision==
 
==Collision==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.4/Part01/components/navigation.html#Collision Collision]
  
 
<pre>
 
<pre>
CADAssembly : X3DGroupingNode, X3DProductStructureChildNode {
+
Collision : X3DGroupingNode, X3DSensorNode {
   MFNode   [in]    addChildren
+
   MFNode [in]    addChildren             [X3DChildNode]
   MFNode   [in]    removeChildren
+
   MFNode [in]    removeChildren         [X3DChildNode]
   MFNode   [in,out] children      []      [X3DProductStructureChildNode]
+
   MFNode [in,out] children      []      [X3DChildNode]
   SFNode   [in,out] metadata      NULL    [X3DMetadataObject]
+
   SFBool  [in,out] enabled        TRUE
   SFString [in,out] name ""
+
   SFNode  [in,out] metadata      NULL    [X3DMetadataObject]
   SFVec3f []      bboxCenter    0 0 0    (-∞,∞)
+
   SFTime  [out]   collideTime
   SFVec3f []      bboxSize      -1 -1 -1 [0,∞) or −1 −1 −1
+
   SFBool [out]    isActive
 +
  SFVec3f []      bboxCenter    0 0 0    (-∞,∞)
 +
   SFVec3f []      bboxSize      -1 -1 -1 [0,∞) or −1 −1 −1
 +
  SFNode  []      proxy          NULL    [X3DChildNode]
 
}
 
}
 
</pre>
 
</pre>
The CADAssembly node holds a set of assemblies or parts grouped together.
 
  
 +
==DTD Validation==
 +
 +
===Children===
 +
 +
Children must appear as follows:
 +
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
# Any number, including none, of nodes derived from ''X3DChildNode'' or Prototype nodes in any order.
 +
 +
===Attributes===
 +
 +
There is no validation of the numerical values of the ''bboxCenter'' or ''bboxSize'' fields. Neither is there any validation of the number of values.
 +
 +
==Schema Validation==
 +
 +
===Children===
 +
 +
Children must appear as follows:
 +
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
# Any number, including none, of nodes derived from ''X3DChildNode'' or Prototype nodes in any order.
 +
 +
===Attributes===
  
The ''children'' field can contain X3DProductStructureChildNode types. Each child will be either a sub-assembly or a part.
+
* The ''bboxCenter'' field accepts a triplet of numerical values.
 +
* The ''bboxsize'' field accepts either three positive values or the triplet -1 -1 -1.
  
 +
==Schematron validation==
  
The ''name'' field documents the name of this CADAssembly.
+
TBD
  
 
* [[Node Reference]]
 
* [[Node Reference]]

Latest revision as of 14:50, 14 May 2015

Collision

Specification Link: Collision

Collision : X3DGroupingNode, X3DSensorNode {
  MFNode  [in]     addChildren             [X3DChildNode]
  MFNode  [in]     removeChildren          [X3DChildNode]
  MFNode  [in,out] children       []       [X3DChildNode]
  SFBool  [in,out] enabled        TRUE
  SFNode  [in,out] metadata       NULL     [X3DMetadataObject]
  SFTime  [out]    collideTime
  SFBool  [out]    isActive
  SFVec3f []       bboxCenter     0 0 0    (-∞,∞)
  SFVec3f []       bboxSize       -1 -1 -1 [0,∞) or −1 −1 −1
  SFNode  []       proxy          NULL     [X3DChildNode]
}

DTD Validation

Children

Children must appear as follows:

  1. A single, optional IS.
  2. A single, optional node derived from X3DMetadataObject for the metadata field.
  3. Any number, including none, of nodes derived from X3DChildNode or Prototype nodes in any order.

Attributes

There is no validation of the numerical values of the bboxCenter or bboxSize fields. Neither is there any validation of the number of values.

Schema Validation

Children

Children must appear as follows:

  1. A single, optional IS.
  2. A single, optional node derived from X3DMetadataObject for the metadata field.
  3. Any number, including none, of nodes derived from X3DChildNode or Prototype nodes in any order.

Attributes

  • The bboxCenter field accepts a triplet of numerical values.
  • The bboxsize field accepts either three positive values or the triplet -1 -1 -1.

Schematron validation

TBD