Difference between revisions of "Collision"
From Web3D.org
Abergstrom (Talk | contribs) |
|||
(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> | ||
− | + | Collision : X3DGroupingNode, X3DSensorNode { | |
− | MFNode | + | MFNode [in] addChildren [X3DChildNode] |
− | MFNode | + | MFNode [in] removeChildren [X3DChildNode] |
− | MFNode | + | MFNode [in,out] children [] [X3DChildNode] |
− | + | SFBool [in,out] enabled TRUE | |
− | + | SFNode [in,out] metadata NULL [X3DMetadataObject] | |
− | + | SFTime [out] collideTime | |
− | SFVec3f | + | SFBool [out] isActive |
+ | SFVec3f [] bboxCenter 0 0 0 (-∞,∞) | ||
+ | SFVec3f [] bboxSize -1 -1 -1 [0,∞) or −1 −1 −1 | ||
+ | SFNode [] proxy NULL [X3DChildNode] | ||
} | } | ||
</pre> | </pre> | ||
− | |||
+ | ==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 '' | + | * 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 | |
* [[Node Reference]] | * [[Node Reference]] |
Latest revision as of 14:50, 14 May 2015
Contents
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:
- 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 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