Language Brick Physics Try Brick Get Brick Search

Get BRICK

You can download Brick Physics and start building physic simulations using the Brick Language and the Brick Physics bundles. The Brick Physics reference implementation is done using AGX Dynamics, i.e. you need AGX Dynamics if you want to try Brick.

Prerequisites

BRICK version Requires AGX Dynamics version
0.0.14 - 0.0.15 2.36.1.4
0.0.16 - 0.0.27 2.36.1.5
0.1.0 2.36.1.5
0.2.0 - 0.2.1 2.37.0.1
0.3.0 - 0.3.4 2.37.1.0
0.3.5 - 0.4.2 2.37.2.0
0.4.3 - 0.5.0 2.37.3.0
0.6.0 - 0.6.3 2.37.3.2
0.7.0 - 2.37.3.3

Brick for python

To install the Brick python package with a version compatible with your AGX Dynamics version

on Windows do:

setup_env.bat
pip install %AGX_DATA_DIR%/agx-pypi
pip install -U brickagx

on OSX or Linux do:

source setup_env.sh
pip3 install $AGX_DATA_DIR/agx-pypi
pip3 install -U brickagx

You should now try out a tutorial! (NOT AVAILABLE YET!) See https://pypi.org/project/BrickAgx for more info on how to use brickagx.

Brick for C++

Brick is still under development, contact us for more info on how to build and link with C++.

VSCode extension

There is an unofficial vscode extension that adds support for syntax highlighting and limited intellisense for brick in visual studio code. It is not available as an official extension but can be installed by downloading a .vsix file and installing it via the command line.

Download extension: brick-0.2.27.vsix

To install run the following command in a command prompt:

code --install-extension brick-0.2.27.vsix

Configure extension for use with Brick Physics bundles

Usually you will want to configure the plugin with the path where you have installed your brick physics bundles. To configure this go to vscode settings and search for “brick”, you will find a setting called “Bundle Path” (see image below) where you can put the path where the brick physics bundles are installed. If you have installed with pip they will usually be located under your pythons site-packages in a folder called brickbundles, you can run pip show brickbundles which should give you a hint as to where they are located.

vscodesetting

Brick Language for other domains than Physics

Brick is still under development, contact us for more info on how to use Brick to create your DSL.