About Store Forum Documentation Contact



Post Reply 
Some questions about Object,Actor etc
Author Message
xzessmedia Offline
Member

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

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

Post: #3
RE: Some questions about Object,Actor etc
thank you greg!!

Royality Free Game Ressources
www.xzessmedia.de
03-25-2013 08:11 PM
Find all posts by this user Quote this message in a reply
Post Reply