Link Search Menu Expand Document

Capsule

Draw a Capsule primitive mesh geometry. Capsule is a tube shape with rounded ends.

Additional Python properties are available in the Capsule API Reference.

from arena import *

scene = Scene(host="arenaxr.org", scene="example")

@scene.run_once
def make_box():
    my_cap = Capsule(
        object_id="my_cap",
        position=(0, 2, -3),
        material=Material(color=(50, 60, 200)),
    )
    scene.add_object(my_cap)

scene.run_tasks()