AnimatLab  2
Test
OsgOrganism.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 
10 namespace OsgAnimatSim
11 {
12  namespace Environment
13  {
20  class ANIMAT_OSG_PORT OsgOrganism : public AnimatSim::Environment::Organism, public OsgMovableItem
21  {
22  protected:
23  Structure *m_lpThisST;
24  Organism *m_lpThisOG;
25  OsgMovableItem *m_lpOsgBody;
26 
27  virtual void SetThisPointers();
28  virtual void SetupPhysics();
29  virtual void DeletePhysics(bool bIncludeChildren) {};
30  virtual void UpdatePositionAndRotationFromMatrix();
31 
32  public:
33  OsgOrganism();
34  virtual ~OsgOrganism();
35 
36  virtual void Body(RigidBody *lpBody);
37 
38  virtual osg::MatrixTransform *ParentOSG();
39  virtual void Create();
40  virtual void ResetSimulation();
41  virtual void Physics_Resize() {};
42  };
43 
44  } // Environment
45 } //OsgAnimatSim
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Vortex Organism implementation.
Definition: OsgOrganism.h:20
A dynamic organism that is controlled by a neural network.
Definition: Organism.h:31