Models

Built-in geometric meshes you can assign to any Entity.

Models

Available built-in meshes that you can pass to Entity(model=…) for common shapes.

Model NameDescription
quadSimple two-triangle square
wireframe_cubeCube rendered as wireframe
planeInfinite flat plane
circleFlat circle composed of many segments
diamondTwo pyramids base-to-base
wireframe_quadSquare outline
sphereUV-sphere
cubeSolid cube
icosphereSubdivided icosahedron
cube_uv_topCube with top face UV-mapped differently
arrowDirectional arrow mesh
sky_domeLarge inverted sphere for skyboxes

Overview

All of the above are located under ursina/models. You can also drop your own .obj/.glb/etc. in the assets folder and refer to it by filename.

Example

from ursina import *

app = Ursina()

# rotating wireframe cube
e = Entity(
    model='wireframe_cube',
    color=color.azure,
    scale=2,
    rotation=(45, 45, 0),
    position=(0, 0, 2)
)

# floor plane
floor = Entity(
    model='plane',
    texture='shore',
    texture_scale=(4,4),
    rotation=(90,0,0),
    position=(0,-1,0)
)

app.run()