Get bodies around a character body

Please don't post Bullet support questions here, use the above forums instead.
deicidio
Posts: 1
Joined: Sat Oct 17, 2009 4:52 pm

Get bodies around a character body

Post by deicidio »

Sorry for my english..
I am trying to create a simple MMO. The idea is that the server (with bullet engine) sends to a client infomation limiting around his view area. Therefore the server has to get the bodies in a certain area (iterate over all bodies of DiscreteDynamicsWorld to find out those bodies that are "near" of the character body). The problem is that it spends a lot of time. Is there any solution for this in the API? For example a matrix (continuous or discrete??¿?) that represents the world..
Thanks in advance