xzessmedia
Member
|
Some questions about Object,Actor etc
Ok i got my own answer..
My question was:
How can i load the ActorShape defined in the Object in the Editor..
The answer is quite simple, just call PhysBody():
ActorShapes shapes; // actor shapes
shapes.add(PhysBody()); // add BodyShape to 'shapes'
Code:
virtual void create(Game.ObjParams &obj)
{
super.create(obj);
T.obj=obj.firstStored();
KugelMesh = obj.mesh();
KugelBody = obj.phys();
ActorShapes shapes; // actor shapes
shapes.add(PhysBody()); // add BodyShape to 'shapes'
KugelActor.create(shapes);
}
Royality Free Game Ressources
www.xzessmedia.de
(This post was last modified: 03-23-2013 07:57 PM by xzessmedia.)
|
|
03-23-2013 02:03 PM |
|
Esenthel
Administrator
|
RE: Some questions about Object,Actor etc
the code is incorrect, it should be:
actor.create(*obj.phys());
please look into tutorials, and game object sources available in EE 2.0 license (in the store, download)
|
|
03-25-2013 12:12 PM |
|
xzessmedia
Member
|
RE: Some questions about Object,Actor etc
thank you greg!!
Royality Free Game Ressources
www.xzessmedia.de
|
|
03-25-2013 08:11 PM |
|