Terminal:
pip install panda3d
Code:
from panda3d.core import loadPrcFileData # customize window:
loadPrcFileData("","""
win-size 1440 1080
window-title window
show-frame-rate-meter True
""") # / scroll down /
from direct.showbase.ShowBase import ShowBase
class code(ShowBase):
def __init__(self):
super().__init__()
block=self.loader.loadModel("models/box") # set box variable to a box ("models/box" file included with panda3d)
block.setPos(0,10,0) # make box goto 0, 10, 0
block.reparentTo(self.render) # make box visible
run=code()
run.run() # run code