AndroidAdam
17-10-2008 06:11:00
Hi, this is kind of a nooby question, I suppose. I'm trying to make a Character class (or an Avatar class). So I created the class and made it inherit from Entity, Easy enough. Well I go to instantiate my new class when I remember that the normal way of creating your entity would be to do this:
well the flaw in using a class inheriting entity is that this doesn't work.
It seems to me that it would be almost essential to have an Avatar class for any game or 3D application. Is what I'm doing not the best way to go?
Thanks, in advance.
Entity ent = sceneMgr.CreateEntity("entity1", "entity1.mesh");
well the flaw in using a class inheriting entity is that this doesn't work.
Avatar ent = sceneMgr.CreateEntity("entity1", "entity1.mesh");
It seems to me that it would be almost essential to have an Avatar class for any game or 3D application. Is what I'm doing not the best way to go?
Thanks, in advance.