Class Collision

java.lang.Object
All Implemented Interfaces:
X3DChildNode, X3DNode, X3DSensorNode, X3DBoundedObject, X3DGroupingNode, Collision

public class Collision extends X3DConcreteNode implements Collision
Collision detects camera-to-object contact using current view and NavigationInfo avatarSize.

Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the org.web3d.x3d.jsail classes. Collision node tooltip: [X3DGroupingNode,X3DSensorNode] Collision detects camera-to-object contact using current view and NavigationInfo avatarSize. Collision is a Grouping node that reports collision detection for its children.
  • Hint: Collision can contain a single proxy child node for substitute collision-detection geometry. Improve run-time performance by using proxy with simpler contact-calculation geometry.
  • Hint: proxy shapes are not rendered and remain invisible.
  • Hint: apply containerField='proxy' to uniquely identify the proxy child Shape or grouping node.
  • Warning: PointSet, IndexedLineSet, LineSet and Text are not collidable geometry do not trigger collisions.
  • Hint: NavigationInfo types '"WALK" "FLY"' support camera-to-object collision detection.
  • Hint: content must be visible to be collidable and to be pickable.
  • Hint: insert a Shape node before adding geometry or Appearance.

Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
See Also: