I use this in my game too ![]()
see A baby minecraft try - Code Snippets - Panda3D ,all code can see in the zip file.
core code:
self.sb = ShaderBuffer("te", np.zeros((0, 3), dtype="f4"), Geom.UHStatic)
self.box2.set_shader_input("te", self.sb)
self.box2.set_instance_count(l2.shape[0])
But I didn’t do so much physics, I just process the object near the player