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

My Project

dgUserConstraint.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 #if !defined(AFX_DGUSERCONSTRAINT_H__97A0E0E3_C511_4761_9346_BAEC6E6322BA_H)
23 #define AFX_DGUSERCONSTRAINT_H__97A0E0E3_C511_4761_9346_BAEC6E6322BA_H
24
25
26 #include "dgBilateralConstraint.h"
27
28 //class dgWorld;
29
30 class dgUserConstraint: public dgBilateralConstraint
31 {
32 public:
33
34 protected:
35 virtual dgUnsigned32 JacobianDerivative (dgContraintDescritor& params) = 0;
36 dgUserConstraint (dgWorld* const manager, dgBody* const dyn0, dgBody* const dyn1, dgInt32 constraintID);
37
38 virtual void GetInfo (dgConstraintInfo* const info) const;
39
40 virtual ~dgUserConstraint();
41 };
42
43 #endif // !defined(AFX_DGUSERCONSTRAINT_H__97A0E0E3_C511_4761_9346_BAEC6E6322BA_H)
44
dgBody
Definition: dgBody.h:44
dgInt32
int dgInt32
Definition: dgTypes.h:218
dgContraintDescritor
Definition: dgConstraint.h:118
dgBilateralConstraint
Definition: dgBilateralConstraint.h:29
dgConstraintInfo
Definition: dgConstraint.h:46
dgUserConstraint
Definition: dgUserConstraint.h:30
dgBilateralConstraint.h
dgUserConstraint::~dgUserConstraint
virtual ~dgUserConstraint()
Definition: dgUserConstraint.cpp:44
dgUnsigned32
unsigned dgUnsigned32
Definition: dgTypes.h:219
dgUserConstraint::dgUserConstraint
dgUserConstraint(dgWorld *const manager, dgBody *const dyn0, dgBody *const dyn1, dgInt32 constraintID)
Definition: dgUserConstraint.cpp:30
dgWorld
Definition: dgWorld.h:129
dgUserConstraint::GetInfo
virtual void GetInfo(dgConstraintInfo *const info) const
Definition: dgUserConstraint.cpp:48
dgUserConstraint::JacobianDerivative
virtual dgUnsigned32 JacobianDerivative(dgContraintDescritor &params)=0