def create_worldspace_gizmo(position=(0,0,0),image='icons/downarrow.png',color=(1,1,1,0.75),throughwalls=True,oncamera=False,scale=2,parent=None,engine=None):
    gizmo = direct.gui.OnscreenImage.OnscreenImage(image = image, pos=tuple(position), scale=0, color=color, parent=parent)
    if not oncamera:
        gizmo.hide(BitMask32.bit(3))
        gizmo.hide(BitMask32.bit(4))
    gizmo.setTransparency(TransparencyAttrib.MAlpha)
    gizmo.setScale(scale)
    gizmo.setBillboardPointEye()
    if throughwalls:
        gizmo.setBin("fixed", 40)
        gizmo.setDepthTest(False)
        gizmo.setDepthWrite(False)
    gizmo.setTwoSided(True)
    return gizmo
Utility to create a gizmo billboard that visually indicates a world-space location.
dataset/ETHPy150Open sccn/SNAP/src/framework/ui_elements/WorldspaceGizmos.py/create_worldspace_gizmo