Best Onscreen Debugger?

What is the best way to make an onscreen debug? I’ve been using the following, but I don’t like the position…

onScreenDebug.enabled = True

def updateOnScreenDebug(task):

    onScreenDebug.add('Avatar Position', localAvatar.getPos())
    onScreenDebug.add('Avatar Angle', localAvatar.getHpr())

    return Task.cont

base.taskMgr.add(updateOnScreenDebug, 'UpdateOSD')

Take a look at OnscreenDebug.py, it’s 100 lines of Python code that implements the onScreenDebug object. If you don’t like something about it, you can write your own version that does exactly what you want.

David

Thank you, I have it the way I want now.