Submitted by Leonard Daly on
}
This node returns the controller (or device) information in current X3D units. The controller may be a portable (mobile) device or some other device capable of providing input based on Earth coordinates. A regular mouse is not an input device. A mouse (or wand) that tracked 3D orientation would be so.
The enabled field determines whether or not the node sends any events. There is no requirement to collect or process any controller coordinate changes if enabled is FALSE.
The availableOrientation, availablePosition, and availableAcceleration fields indicate if controller coordinates are available for the orientationAngles, position, and acceleration fields, respectively.
The orientationAngle field returns the angels of the controller as defined as per the W3C specification on DeviceOrientation (https://www.w3.org/TR/orientation-event/), section 4.1.
Note: Should these angles match the W3C Standard for mobile devices or be in standard X3D units including coordinate system and +/- of angle?
The orientationAbsolute field indicates if the angles returned by orientationAngles are based on absolute Earth coordinates or just relative to some reference.
The position field is the geoposition (if positionAbsolute is TRUE) of the controller. If the coordinates are relative to some reference, then positionAbsolute shall be set to FALSE.
- Log in to post comments