object node

Summary

The object node displays an object model in the scene.

For more information regarding the scripting of this node see the scripting reference entry for object.

Children

This node can contain event nodes with the following types:

onclickdown

Occurs when the user depresses the selection button with the center of the screen over the object or presses down on the object with their finger or mouse cursor.

onclickup

Occurs when the user releases the selection button with the center of the screen over the object, lifts their finger from the screen over the object, or releases the mouse button with the cursor over the object.

onhover

Occurs when the center of the screen is moved over the object.

onleavehover

Occurs when the center of the screen leaves the object.

onproximity

Occurs when the object comes close to another object. For more details see Reacting to object proximity.

Example B.5. Use of object node

<object id="myplane" type="primitives/plane/plane.aro" position="1 4 3">
	<event type="onclickdown">
		<transition .../>
		...
	</event>
</object>

Attributes

object attributes
nametypedefaultnotes
typefilenamethis attribute must be specifiedpath of the model to be used for this object
skinfilename the path of a texture to use to override the texture(s) specified in the model file. In the case that the model uses more than one texture, this attribute overrides every texture. See Media - Images and Textures for details on the formats and image sizes that are supported.

Attributes common to transformable nodes
nametypedefaultnotes
positionx y z0 0 0position of the node relative to its parent (or the center of the screen or camera, see relativeto)
scalex y z1 1 1scale of the node relative to its parent (or the center of the screen or camera, see relativeto)
rotationyaw pitch roll0 0 0rotation of the node, in degrees, relative to its parent (or the center of the screen or camera, see relativeto)
relativeto"parent", "screen" or "camera"parentwhether this node is located relative to its parent node, the screen, or the camera. See Viewport-relative Content for more information.
billboardbooleanfalsebillboarded geometry always faces the camera
filldepthbufferbooleantruewhether the depth buffer is filled for this geometry

Attributes common to nodes
nametypedefaultnotes
visiblebooleantrueIf false, this node (or its children, if it has any) will not be rendered.
colorr g b a (in range 0 to 1)1 1 1 1specifies the color used to modulate this node and its children
idstring an identifier used to refer to this node