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

« back to all changes in this revision

Viewing changes to source/gameengine/Physics/Sumo/Fuzzics/include/SM_Scene.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: SM_Scene.h,v 1.5 2004/03/22 22:02:09 jesterking Exp $
 
2
 * $Id: SM_Scene.h,v 1.9 2004/12/04 09:51:04 kester Exp $
3
3
 * Copyright (C) 2001 NaN Technologies B.V.
4
4
 * The physics scene.
5
5
 *
88
88
    void add(SM_Object& object);
89
89
    void remove(SM_Object& object);
90
90
 
91
 
        void addPair(SM_Object *obj1, SM_Object *obj2) {
92
 
                m_pairList.insert(std::make_pair(obj1, obj2));
93
 
        }
94
 
 
95
 
        void clearPairs() {
96
 
                m_pairList.clear();
97
 
        }
 
91
        void notifyCollision(SM_Object *obj1, SM_Object *obj2);
98
92
 
99
93
        void setSecondaryRespTable(DT_RespTableHandle secondaryRespTable); 
100
94
        DT_RespTableHandle getSecondaryRespTable() { return m_secondaryRespTable; }
101
95
        
102
96
        void requestCollisionCallback(SM_Object &object);
103
97
 
 
98
        void beginFrame();
 
99
        void endFrame();
104
100
 
105
101
        // Perform an integration step of duration 'timeStep'.
106
102
        // 'subSampling' is the maximum duration of a substep, i.e.,
107
103
        // The maximum time interval between two collision checks.
108
104
        // 'subSampling' can be used to control aliasing effects
109
105
        // (fast moving objects traversing through walls and such). 
110
 
        void proceed(MT_Scalar timeStep, MT_Scalar subSampling);
 
106
        bool proceed(MT_Scalar curtime, MT_Scalar ticrate);
 
107
        void proceed(MT_Scalar subStep);
111
108
 
112
109
        /**
113
110
         * Test whether any objects lie on the line defined by from and
144
141
        
145
142
        /** internal type */
146
143
        typedef std::vector<SM_Object *> T_ObjectList;
147
 
        /** internal type */
148
 
        typedef std::set<std::pair<SM_Object *, SM_Object *> > T_PairList;
149
144
 
150
145
        /** Handle to the scene in SOLID */
151
146
        DT_SceneHandle      m_scene;
172
167
         * The list of objects that receive motion updates and do
173
168
         * collision tests. */
174
169
        T_ObjectList        m_objectList;
175
 
 
176
 
        /**
177
 
         * A list with pairs of objects that collided the previous
178
 
         * timestep. The list is built during the proceed(). During that
179
 
         * time, it is not valid. */
180
 
        T_PairList          m_pairList;
 
170
        
 
171
        unsigned int        m_frames;
181
172
};
182
173
 
183
174
#endif