Skip to main content

Built-In Shape

Creates the specified shape.

Built-In Shape block

Description​

The Built-In Shape block returns a particular built-in shape chosen from the drop down menu. This is a code block part of the Traits drawer.

Usage​

Returns a particular built-in shape chosen from the drop down menu.

Syntax​

Inputs in this block:

  • A pre-loaded shape from the dropdown menu

Example​

In this model, the frog is controlled by the user, as it tries to eat the flies. The shape of the frog has been identified using the built-in shape block.

Built-In Shape example code

Notes​

The Built-In Shape block provides access to a library of pre-loaded 3D shapes that can be used for agents in your simulations.

  • Uploaded Shape - Use a custom uploaded shape
  • Set My to - Set an agent's shape trait
  • My - Access an agent's current shape trait