AnimatLab  2
Test
BlConstraintFriction.cpp
1 // BlConstraintFriction.cpp: implementation of the BlConstraintFriction class.
2 //
4 
5 #include "StdAfx.h"
6 #include "BlConstraintFriction.h"
7 #include "BlJoint.h"
8 #include "BlMotorizedJoint.h"
9 #include "BlRigidBody.h"
10 #include "BlSimulator.h"
11 
12 namespace BulletAnimatSim
13 {
14  namespace Environment
15  {
16 
18 // Construction/Destruction
20 
21 BlConstraintFriction::BlConstraintFriction()
22 {
23 }
24 
25 BlConstraintFriction::~BlConstraintFriction()
26 {
27 }
28 
30 {
31  ConstraintFriction::Initialize();
32 
33  SetFrictionProperties();
34 }
35 
36 void BlConstraintFriction::SetFrictionProperties()
37 {
38  if(m_lpSim && m_lpNode)
39  {
40  BlJoint *lpJoint = dynamic_cast<BlJoint *>(m_lpNode);
41  if(lpJoint)
42  lpJoint->SetConstraintFriction();
43  }
44 }
45 
46  } // Visualization
47 } //BulletAnimatSim
A common class for all joint data specific to vortex.
Definition: BlJoint.h:29
Simulator * m_lpSim
The pointer to a Simulation.
Definition: AnimatBase.h:43
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Node * m_lpNode
The pointer to this items parent Node. If this is not relevant for this object then this is NULL...
Definition: AnimatBase.h:52
virtual void Initialize()
Initializes this object.