Hi,
I have a map of RakNet SystemAddresses and Actors : Game::Chr like this:
Code:
Map<SystemAddress, Actor> Characters(Create, Compare, NULL);
Previously, I was using Game::ObjMemx<Actor> Characters, and this code worked:
Code:
.setObjType(Characters,OBJ_CHR)
.New("world/sample.world");
This is drawn with:
Code:
void onPlayerEnter(unsigned short networkID, Str8 name, Vec pos)
{
Game::ObjParams &player = *Game::Objs("Obj/chr/Human/0.obj");
Game::World.objCreate(player,Matrix(player.scale(),pos));
}
But now i'm using a Map, I can't do .setObjType(Map<...>,...) - is there a way I can make this work? Or do I have to iterate the map each render frame to draw the players? If I have to do the later, do I have to cull them manually?
Edit: And Dynad and I were discussing the next version of the RakNet tutorial, and wondered if it would it be too much to ask for velocity-time Interpolation and Extrapolation, as with
http://www.mindcontrol.org/~hplus/interpolation.html as a feature request for an engine feature, on some low level which lets us use it in players, physics primitives, etc.
Thanks,
Chris