Difference between revisions of "Contact"

From Web3D.org
Jump to: navigation, search
(Contact)
(DTD Validation)
Line 29: Line 29:
 
==DTD Validation==
 
==DTD Validation==
  
TBD
+
Children must appear as follows:
 +
 
 +
# A single, optional IS.
 +
# A single, optional node derived from X3DMetadataObject for the metadata field.
 +
# Any number of RigidBody, CollidableOffset, CollidableShape or Prototype nodes in any order.
  
 
==Schema Validation==
 
==Schema Validation==

Revision as of 13:03, 13 April 2015

Contact

Specification Link: Contact

Contact : X3DNode {
  MFString [in,out] appliedParameters        "BOUNCE"
  SFNode   [in,out] body1                    NULL     [RigidBody]
  SFNode   [in,out] body2                    NULL     [RigidBody]
  SFFloat  [in,out] bounce                   0        [0,1]
  SFVec3f  [in,out] contactNormal            0 1 0    (-∞,∞)
  SFFloat  [in,out] depth                    0        (-∞,∞)
  SFVec2f  [in,out] frictionCoefficients     0 0      [0,∞)
  SFVec3f  [in,out] frictionDirection        0 1 0    (-∞,∞)
  SFNode   [in,out] geometry1                NULL     [X3DNBodyCollidableNode]
  SFNode   [in,out] geometry2                NULL     [X3DNBodyCollidableNode]
  SFNode   [in,out] metadata                 NULL     [X3DMetadataObject]
  SFFloat  [in,out] minbounceSpeed           0        [0,∞)
  SFVec3f  [in,out] position                 0 0 0    (-∞,∞)
  SFVec2f  [in,out] slipCoefficients         0 0      (-∞,∞)
  SFFloat  [in,out] softnessConstantForceMix 0.0001   [0,1]
  SFFloat  [in,out] softnessErrorCorrection  0.8      [0,1]
  SFVec2f  [in,out] surfaceSpeed             0 0      (-∞,∞)
}

Note: Although validation is provided this node cannot be included directly within an X3D file. It will only be created programmatically by the browser.

DTD Validation

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 of RigidBody, CollidableOffset, CollidableShape or Prototype nodes in any order.

Schema Validation

TBD

Schematron validation

TBD