如何在panda3d python中使用角色模型?

2024-09-29 06:23:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在学习如何使用Panda3d,但我不知道如何加载actor。在教程中,它说我可以做到这一点,它应该运行良好:

self.tempActor = Actor("Models/PandaChan/act_p3d_chan", {"walk" : "Models/PandaChan/a_p3d_chan_run"})
self.tempActor.reparentTo(render)

但它总是给我一个错误:

OSError: Could not load Actor model Models/PandaChan/act_p3d_chan

我不太确定演员有多有用,但我仍然想知道如何使用他们


Tags: runselfmodels教程renderpanda3dactchan