AI Bound Editor

From Divinity Engine Wiki
Revision as of 11:06, 2 August 2017 by Jbotteram (talk | contribs)
Jump to: navigation, search
AIBoundEditor.png

The AI Bound Editor

Opening the AI Bound Editor

AIBoundProperty.png

A dockpanel containing a Root Template Panel and a Sidebar Panel showing the location of the AI Bounds property


To open the AI Bound Editor to edit the bounds of a character or item:

  1. Open the Root Template Panel and select the root template of the character or item you want to edit
  2. Select and open the Sidebar Panel via View > SideBar or press <Ctrl + B>
  3. Select the "Bounds" property in the PropertyGrid and click the [..] button to the right


Using the AI Bound Editor

AIBoundEditorStepByStep.png

Each component of the AI Grid Panel numbered


The AI Bound Editor has the following components:

  1. Save/Load
  2. AI Bound Properties
  3. AI Bound Editing Tools
  4. Renderview


Save and Load

The save button applies the AI bounds, the load button restores the AI bound properties back to original (how they were when you opened the panel)


AI Bound Properties

The AI bound properties box shows the AI bounds of your template in meters, and consists of 2 components:

  1. AIBoundEditor Properties Type.png
    The AI bound type [1] [2]
  2. AIBoundEditor Properties Bounds.png
    The AI bounds


[1] The AI bound type determines whether the template has no AI bound (None), a cylindrical AI bound (Cylinder) or a box AI bound (Box)
[2] For performance reasons, cylindrical AI bounds are turned off for items


AI Bound Editing Tools

The AI Bound Editor has 2 tools to make editing a root template's AI bounds easier:

  1. The Resize Interaction Mode
  2. The Auto Size Tool


Resize Interaction Mode

AIBoundEditor Tools ResizeInteractionMode.png The resize interaction mode toggle


The resize interaction mode works the same way as the Shape Edit Interaction Mode, providing a visual representation of the template's AI Bounds which you can click and drag.

To use the resize interaction mode:

  1. Make sure your template has the correct AI bounds shape (box or cylinder)
  2. Click the resize interaction mode toggle button
  3. Mouse over the face you want to expand or contract
    1. For cylinders, this can be the side (radius) or top (height)
    2. For boxes, this can be any individual face (x, z, y), an edge (moves 2 faces) or vertex (moves 3 faces)

For additional options, right-click the resize interaction mode button.


Auto Size Tool

AIBoundEditor Tools AutoSize.png The auto size tool


The auto size tool automatically resizes the AI bounds to fit the template's visual.

To use this tool, simply assign the correct visual to your template and click the auto size button.