My Project: dynamics.mod/NewtonDynamics/source/physics/dgDeformableBodiesUpdate.h Source File

My Project

dgDeformableBodiesUpdate.h
Go to the documentation of this file.
1 /* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics>
2 *
3 * This software is provided 'as-is', without any express or implied
4 * warranty. In no event will the authors be held liable for any damages
5 * arising from the use of this software.
6 *
7 * Permission is granted to anyone to use this software for any purpose,
8 * including commercial applications, and to alter it and redistribute it
9 * freely, subject to the following restrictions:
10 *
11 * 1. The origin of this software must not be misrepresented; you must not
12 * claim that you wrote the original software. If you use this software
13 * in a product, an acknowledgment in the product documentation would be
14 * appreciated but is not required.
15 *
16 * 2. Altered source versions must be plainly marked as such, and must not be
17 * misrepresented as being the original software.
18 *
19 * 3. This notice may not be removed or altered from any source distribution.
20 */
21
22 #ifndef _DG_DEFORMABLE_BODY_UPDATE_H_
23 #define _DG_DEFORMABLE_BODY_UPDATE_H_
24
25
26
27 class dgCollisionDeformableMesh;
28
29 class dgDeformableBodiesUpdate: public dgList<dgCollisionDeformableMesh*>
30 {
31 public:
32 dgDeformableBodiesUpdate (dgMemoryAllocator* const allocator);
33
34 void AddShape(dgCollisionDeformableMesh* const shape);
35 void RemoveShape(dgCollisionDeformableMesh* const shape);
36
37 private:
38 void ApplyExternaForces(dgFloat32 timestep);
39 void SolveConstraintsAndIntegrate (dgFloat32 timestep);
40
41 dgTree <dgListNode*, const dgCollisionDeformableMesh*> m_dictionary;
42 friend class dgBroadPhase;
43 friend class dgWorldDynamicUpdate;
44 };
45
46 #endif
47
dgFloat32
float dgFloat32
Definition: dgTypes.h:233
dgDeformableBodiesUpdate::AddShape
void AddShape(dgCollisionDeformableMesh *const shape)
Definition: dgDeformableBodiesUpdate.cpp:34
dgList
Definition: dgList.h:33
dgWorldDynamicUpdate
Definition: dgWorldDynamicUpdate.h:252
dgTree
Definition: dgTree.h:88
dgBroadPhase
Definition: dgBroadPhase.h:65
dgCollisionDeformableMesh
Definition: dgCollisionDeformableMesh.h:36
dgDeformableBodiesUpdate
Definition: dgDeformableBodiesUpdate.h:29
timestep
dgFloat32 timestep
Definition: dgBallConstraint.h:34
dgMemoryAllocator
Definition: dgMemory.h:73
dgDeformableBodiesUpdate::dgDeformableBodiesUpdate
dgDeformableBodiesUpdate(dgMemoryAllocator *const allocator)
Definition: dgDeformableBodiesUpdate.cpp:28
dgDeformableBodiesUpdate::RemoveShape
void RemoveShape(dgCollisionDeformableMesh *const shape)
Definition: dgDeformableBodiesUpdate.cpp:40