def have_bullet(): """ Returns whether this panda3d build has bullet support """ try: import panda3d.bullet except Exception as msg: return False return PandaSystem.get_global_ptr().has_system("Bullet")
def print_info(self): print("Python version:", platform.python_version()) print("Panda version: %s (%s) by %s (%s)" % (PandaSystem.getVersionString(), PandaSystem.getGitCommit(), PandaSystem.getDistributor(), PandaSystem.getBuildDate())) print("Panda Systems:") for system in PandaSystem.get_global_ptr().get_systems(): print("\t", system) print("Data type:", "double" if settings.use_double else 'float')
def have_freetype(): """ Returns whether this panda3d build has freetype support """ return PandaSystem.get_global_ptr().has_system("Freetype")
def have_eigen(): """ Returns whether this panda3d build has eigen support """ return PandaSystem.get_global_ptr().has_system("eigen")