SpatialSensor

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in book_prev() (line 775 of /home/drbiz/public/tools.realism.com/modules/book/book.module).

Primary tabs

SpatialSensor : X3DSpatialDeviceSensorNode {
SFString
[in,out]
description
""
SFBool
[in,out]
enabled
TRUE
SFNode
[in,out
metadata
NULL
SFBool
[out]
availableOrientation
Boolean
SFBool
[out]
orientationAbsolute
Boolean
SFRotation
[out]
orientation
SFVec3f
[out]
orientationDeviceAngles
[ [0,pi), [-pi,pi), [-pi/2,pi/2) ]
SFBool
[out]
availablePosition
Boolean
SFBool
[out]
positionAbsolute
Boolean
SFVec3f
[out]
position
SFBool
[out]
availableAcceleration
Boolean
SFVec3f
[out]
acceleration
SFVec3f
[out]
accelerationGravity



}

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.