Brainache
Member
|
Object Creation
Can an object be created without having a .obj file?
ie: can you create new Obj(), then assign it a mesh, scale, and type entirely from c++?
|
|
12-22-2008 04:40 PM |
|
Esenthel
Administrator
|
Re: Object Creation
Hi yes, this is possible,
all you need is really a ObjParams object (this is usually loaded from an .obj file) but you can create one dynamically
in the code:
ObjParams op;
Set(op.type,"OBJ_ITEM"); // 'type' needs to be set as the enum name
op.mesh=
op.phys=
Game::World.objCreate( .. ,op ,...);
Let me know if you'll need more info on that
|
|
12-22-2008 04:52 PM |
|