AnimatLab  2
Test
BlUniversal.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace BulletAnimatSim
10 {
11  namespace Environment
12  {
13  namespace Joints
14  {
15 
17  {
18  protected:
20  //I switched this to use the cone twist constraint instead of the bullet universal constraint because
21  // tests showed that their universal constraint did not work well at all. Even slight forces to the joint
22  // caused it to blow up. I will probably need to address this at some point, but for now a ball-socket is a good enough approx.
23  btConeTwistConstraint *m_btSocket;
24 
25  virtual void SetupPhysics();
26 
27  public:
28  BlUniversal();
29  virtual ~BlUniversal();
30 
31 #pragma region DataAccesMethods
32 
33  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
34  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
35 
36 #pragma endregion
37 
38  virtual void CreateJoint();
39  virtual void Physics_ResetSimulation();
40  };
41 
42  } //Joints
43  } // Environment
44 } //BulletAnimatSim
A common class for all joint data specific to vortex.
Definition: BlJoint.h:29
btConeTwistConstraint * m_btSocket
The bullet socket class.
Definition: BlUniversal.h:23
A BallSocket type of joint.
Definition: BallSocket.h:27
Classes for implementing the cm-labs vortex physics engine for AnimatLab.