~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/gameengine/Ketsji/KX_IPhysicsController.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: KX_IPhysicsController.h,v 1.7 2004/04/08 11:34:48 kester Exp $
 
2
 * $Id: KX_IPhysicsController.h,v 1.8 2005/03/25 10:33:37 kester Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
37
37
#include "MT_Point3.h"
38
38
#include "MT_Matrix3x3.h"
39
39
 
 
40
struct KX_ClientObjectInfo;
 
41
 
40
42
/**
41
43
        Physics Controller, a special kind of Scene Graph Transformation Controller.
42
44
        It get's callbacks from Physics in case a transformation change took place.
47
49
class KX_IPhysicsController : public SG_Controller
48
50
                                                         
49
51
{
50
 
 
51
52
protected:
52
53
        bool            m_bDyna;
53
54
        bool            m_suspendDynamics;
68
69
        virtual MT_Vector3 GetVelocity(const MT_Point3& pos)=0;
69
70
        virtual void    SetAngularVelocity(const MT_Vector3& ang_vel,bool local)=0;
70
71
        virtual void    SetLinearVelocity(const MT_Vector3& lin_vel,bool local)=0;
71
 
        virtual void    resolveCombinedVelocities(const MT_Vector3 & lin_vel, const MT_Vector3 & ang_vel) = 0;
 
72
        virtual void    resolveCombinedVelocities(float linvelX,float linvelY,float linvelZ,float angVelX,float angVelY,float angVelZ) = 0;
72
73
 
73
74
        virtual void    getOrientation(MT_Quaternion& orn)=0;
74
75
        virtual void setOrientation(const MT_Quaternion& orn)=0;
95
96
        // call from scene graph to update
96
97
        virtual bool Update(double time)=0;
97
98
        void*   GetUserData() { return m_userdata;}
98
 
        
99
 
 
100
99
};
101
100
 
102
101
#endif //__KX_IPHYSICSCONTROLLER_H