About Store Forum Documentation Contact
Donations:
197$/mo



Post Reply 
How to add Chr into world from memory container?
Author Message
molokki Offline
Member

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

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

Post: #3
RE: How to add Chr into world from memory container?
Ok, thank you smile
08-27-2012 06:40 PM
Find all posts by this user Quote this message in a reply
Post Reply