siwykon
Member
|
Item Physic
When I create Item in Inwentory witch that:
Quote:Game::ObjParams &obj=*Game::Objs("Data/Obj/Items/Armors/01/Spodnie.obj");
InvGui.inv->items.New().create(obj);
I see that in the world is created physic from this item and it have collisions witch player (not like item added from the world [that items have physic witch no collisions when are was added to inwentory])!
I want to remove this physic in creating moment!
Is it posible? If Yes then how (please give me small example).
|
|
04-28-2011 04:00 AM |
|
Seba
Member
|
RE: Item Physic
Quote:.actor.active(false);
|
|
04-28-2011 06:25 AM |
|
siwykon
Member
|
RE: Item Physic
But I don't have identifier to Item!
Item isn't created in world and I don't know how get Item identifier!
(This post was last modified: 04-28-2011 08:33 AM by siwykon.)
|
|
04-28-2011 07:02 AM |
|
menajev
Member
|
RE: Item Physic
Code:
InvGui.inv->items.New().create(obj).actor...
is not working?
|
|
04-28-2011 09:18 AM |
|
siwykon
Member
|
RE: Item Physic
Error:
expression must have class type
|
|
04-28-2011 10:10 AM |
|
Esenthel
Administrator
|
RE: Item Physic
Item &item=InvGui.inv->items.New();
item.
|
|
04-28-2011 10:20 AM |
|
siwykon
Member
|
RE: Item Physic
Problem solved:
Quote:Game::ObjParams &obj=*Game::Objs("Data/Obj/Items/Armors/01/Spodnie.obj");
InvGui.inv->items.New().create(obj);
InvGui.inv->items.last().actor.active(false);
(This post was last modified: 04-28-2011 01:33 PM by siwykon.)
|
|
04-28-2011 01:32 PM |
|