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')