Version User Scope of changes
Jul 24 2009, 5:23 PM EDT (current) dale.beermann 24 words added, 89 words deleted, 7 photos added, 11 photos deleted
Mar 27 2009, 12:23 PM EDT greg.tracy 62 words deleted, 1 widget deleted

Changes

Key:  Additions   Deletions
As seen in the anatomy of a behavior page, the action definition panel describes what actually executes when the behavior is run. All of the actions, operators, and object references can be dragged out of the input browser and dropped into the action definition panel.

The UI is completely drag and drop. Actions, objects, attributes, and functions are presented in a navigator and dragged into the behavior editor. For example, the following sets the orientation of the Activeactive Objectobject to zero:

set orientation

If I want to change the right-hand side from “0″ to some other value, say a copy of another object’s attribute, I simply drag in that attribute:

1. Initially, I can type in a value for orientation.

set orientation 45

2.Instead, I’m dragging over the circle’s orientation attribute.
set orientation mouseover

3. Now my orientation is set equal to the circle’s orientation.
set orientation final


But what if I want to add something to the right-hand side? Select a math function from the inputlogic browser by clicking the Math tab:Andtab and simply drag it onto the value:

add orientation


:

1. DragDragging the plus function and drop on circle’sspaceship’s orientation.2.Theorientation existingwill value,automatically circle’spre-populate orientationthe first element becomesof the firstplus statement with whatever argument.was underneath it.

add to orientation final

The comprehensive set of mathematical functions allows any equation to be created.

The logic for boolean operations is similar. Conditional statements are formed by dragging over logic blocks.blocks Again, a comprehensive set of boolean operations allow creation of arbitrary logic.

Notice that the boolean functions are displayed with a diamond shape that fits into the IF and and statements. This shape conveys to the user visually where a given function or attribute can be dragged. The same shape is used for attributes. The boolean attributes below, such as ignore_collisions, have the same diamond shape.The end result is an editor that provides comprehensive functionality in a straightforward drag and drop interface.logic view