Calculate collisions without rendering objects

Hello there,

I’m working on a project where I have a server that keeps all the information about the models in my 3D environment and a client who shows a view of the world and sends commands to modify the models’ state.

This works just fine, but the server also renders everything in the scene when I make a call to base.run() and I don’t really need this.

I was wondering, is there a way I could disable rendering and use the server just to run my tasks and check for collisions?

Thanks!

put this code on the very top of your code

from pandac.PandaModules import loadPrcFileData
loadPrcFileData("", "window-type none")

or change the config.prc file accordingly.

Take a look at direct/showbase/ShowBase.py.
That file explains a big part of Panda’s magic, window creation included.

As for the server, I’d also disable audio as well :slight_smile: