You will probably want to adjust the field of view, also. For an orthographic lens, this is done via the lens.setFilmSize() method, and the units are in physical units.
I had actually tried that and it didn’t work, which prompted me to try what I did.
This is what I get for doing that:
Traceback (most recent call last):
File "game.py", line 79, in ?
world = game()
File "game.py", line 37, in __init__
self.load_camera()
File "game.py", line 71, in load_camera
base.camera.setLens(lens)
AttributeError: NodePath instance has no attribute 'setLens'
this is what i write:
def load_camera(self):
'''this takes care of camera positioning'''
lens = OrthographicLens()
base.camera.setLens(lens)