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

My Project

dgDeformableContact.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_CONTACT_H_
23 #define __DG_DEFORMABLE_CONTACT_H_
24
25
26 #include "dgContact.h"
27
28
29
30 class dgDeformableContact: public dgContact
31 {
32 public:
33 dgDeformableContact(dgWorld* const world, const dgContactMaterial* const material);
34 virtual ~dgDeformableContact();
35
36 virtual bool IsDeformable() const;
37 virtual void GetInfo (dgConstraintInfo* const info) const;
38 };
39
40
41 inline bool dgDeformableContact::IsDeformable() const
42 {
43 return true;
44 }
45
46
47 #endif
48
dgContact
Definition: dgContact.h:195
dgDeformableContact::dgDeformableContact
dgDeformableContact(dgWorld *const world, const dgContactMaterial *const material)
Definition: dgDeformableContact.cpp:32
dgConstraintInfo
Definition: dgConstraint.h:46
dgDeformableContact::IsDeformable
virtual bool IsDeformable() const
Definition: dgDeformableContact.h:41
dgContactMaterial
Definition: dgContact.h:138
dgContact.h
dgDeformableContact::GetInfo
virtual void GetInfo(dgConstraintInfo *const info) const
Definition: dgDeformableContact.cpp:42
dgDeformableContact
Definition: dgDeformableContact.h:30
dgWorld
Definition: dgWorld.h:129
dgDeformableContact::~dgDeformableContact
virtual ~dgDeformableContact()
Definition: dgDeformableContact.cpp:38