Fires when a certain action (e.g., to fly to an object) is performed on the node object.
SGWorld.attachEvent(“onNodeAction”, myOnNodeAction);
function myOnNodeAction(node, action)
Parameter |
Description |
node |
An SGNode object describing the node on which the action was performed |
action |
Action code. For a complete list of possible values see Skyline Globe Control node action codes |
Remarks
This event gives the user an opportunity to define an activity when certain actions are performed on the object. For example, the event can be monitored to know if the camera started a “fly to” operation toward the object or if the object is being shown/hidden.