molokki
Member
|
How to add Chr into world from memory container?
I have stored Chrs into memory container and I want to add them later into world. All I could find was ObjCreate and ObjInject functions but they need to know ObjParams. Is it possible to add objects from memory containers into world? Or can I somehow get Characters objparams from that mem container?
|
|
08-27-2012 03:47 PM |
|
Ogniok
Member
|
RE: How to add Chr into world from memory container?
If you want to add anything to world you have to do it that way:
Code:
Game::ObjParamsPtr obj=Game::Objs.ptrRequire("Path/To/OBJ/File");
Game::World.objCreate(*obj, Matrix(obj->scale(), pos));
Check out tutorial: Advanced\4 - Demos, Games Basics\Game Basics\10 - Dynamically Created Objects.cpp
|
|
08-27-2012 05:45 PM |
|
molokki
Member
|
RE: How to add Chr into world from memory container?
Ok, thank you
|
|
08-27-2012 06:40 PM |
|