About Store Forum Documentation Contact
Donations:
169$/mo



Post Reply 
Object Creation
Author Message
Brainache Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
Post Reply