AnimatLab  2
Test
BlHinge.h
Go to the documentation of this file.
1 
7 #pragma once
8 
10 
11 namespace BulletAnimatSim
12 {
13  namespace Environment
14  {
15  namespace Joints
16  {
33  {
34  protected:
37 
38  float m_fltChildMassWithChildren;
39 
40  float m_fltBounce;
41 
42  virtual void DeleteJointGraphics();
43  virtual void CreateJointGraphics();
44 
45  virtual bool NeedApplyAssist();
46  virtual void ApplyMotorAssist();
47 
48  virtual void EnableFeedback();
49 
50  virtual float GetCurrentBtPosition();
51 
52  virtual void TurnMotorOff();
53 
54  public:
55  BlHinge();
56  virtual ~BlHinge();
57 
58  virtual void JointPosition(float fltPos);
59 
60  virtual void SetAlpha();
61 
62  virtual void SetLimitValues();
63 
64  virtual void SetupPhysics();
65 
66 #pragma region DataAccesMethods
67 
68  virtual float *GetDataPointer(const std::string &strDataType);
69  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
70  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
71  virtual bool JointIsLocked();
72 
73 #pragma endregion
74 
75  virtual void EnableLimits(bool bVal);
76  virtual void CreateJoint();
77  virtual void StepSimulation();
78  virtual void ResetSimulation();
79 
80  virtual void Physics_UpdateAbsolutePosition();
81  virtual void Physics_EnableLock(bool bOn, float fltPosition, float fltMaxLockForce);
82  virtual void Physics_EnableMotor(bool bOn, float fltDesiredVelocity, float fltMaxForce, bool bForceWakeup);
83  virtual void Physics_MaxForce(float fltVal);
84 
85  virtual void SetConstraintFriction();
86  virtual void AxisConstraintSpringEnableChanged(bool bEnabled);
87  };
88 
89  } //Joints
90  } // Environment
91 } //BulletAnimatSim
Declares the btGeneric6DofConstraint class.
Vortex hinge joint class.
Definition: OsgHinge.h:31
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Vortex hinge joint class.
Definition: BlHinge.h:32
btAnimatGeneric6DofConstraint * m_btHinge
The bullet hinge class.
Definition: BlHinge.h:36
A hinge type of joint.
Definition: Hinge.h:39