Server Example: Compound Object

Overview

Builds a compound object from many capsule children with random transforms, then drops it into the scene. It shows how to create and visualize compound shapes.

Screenshot

compound_object example

Binary

Installed executable: compound_object.

Run

Run the installed executable:

<raisim-install>/bin/compound_object

On Windows, run compound_object.exe instead. This example uses RaisimServer. Start the rayrai TCP viewer and connect to port 8080. RaisimUnity and RaisimUnreal are no longer supported.

Details

  • Builds a compound object from 20 capsule children with random poses.

  • Adds the compound to the world with custom inertia and appearance.

  • Shows how to assemble compound shapes programmatically.