ScummVM API documentation
dgUpVectorConstraint.h
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(__DGUPVECTORCONSTRAINT_563GFT35684GT__INCLUDED_)
23 #define __DGUPVECTORCONSTRAINT_563GFT35684GT__INCLUDED_
24 #include "dgBilateralConstraint.h"
25 
26 //template<class T> class dgPool;
27 
29 
30 typedef dgUnsigned32(dgApi *dgUpVectorJointCallBack)(const dgUpVectorConstraint &upVector);
31 
33 public:
34  void SetJointParameterCallBack(dgUpVectorJointCallBack callback);
35  void InitPinDir(const dgVector &pin);
36 
37  dgVector GetPinDir() const;
38  void SetPinDir(const dgVector &pin);
39 
40  virtual bool IsBilateral() const;
41 
42 private:
44  virtual ~dgUpVectorConstraint();
45 // virtual void Remove(dgWorld* world);
46 
47  virtual dgUnsigned32 JacobianDerivative(dgContraintDescritor &params);
48 // static dgUpVectorConstraint* Create(dgWorld* world);
49 
50  dgUpVectorJointCallBack m_callBack;
51 // dgUnsigned32 m_reserve[3];
52 
53  friend class dgWorld;
54 // friend class dgPool<dgUpVectorConstraint>;
55 };
56 
57 /*
58 class dgUpVectorConstraintArray: public dgPoolContainer<dgUpVectorConstraint>
59 {
60 };
61 */
62 
63 #endif // !defined(__DGUPVECTORCONSTRAINT_563GFT35684GT__INCLUDED_)
64 
Definition: dgVector.h:86
Definition: dgConstraint.h:137
Definition: dgBilateralConstraint.h:28
Definition: dgUpVectorConstraint.h:32
Definition: dgWorld.h:118