6 #include "VsConstraintFriction.h"
7 #include "VsMovableItem.h"
10 #include "VsMotorizedJoint.h"
11 #include "VsRigidBody.h"
13 #include "VsSimulator.h"
14 #include "VsOsgUserData.h"
15 #include "VsOsgUserDataVisitor.h"
16 #include "VsDragger.h"
17 #include "VsSimulator.h"
28 VsConstraintFriction::VsConstraintFriction()
32 VsConstraintFriction::~VsConstraintFriction()
38 ConstraintFriction::Initialize();
40 SetFrictionProperties();
43 void VsConstraintFriction::SetFrictionProperties()
50 Vx::VxConstraint *vxConstraint = lpJoint->Constraint();
54 VxConstraintFriction *vxCFriction = vxConstraint->getCoordinateFriction(0);
Simulator * m_lpSim
The pointer to a Simulation.
A common class for all joint data specific to vortex.
float m_fltStaticFrictionScale
The scale ration of static to dynamic friction.
virtual void Initialize()
Initializes this object.
Node * m_lpNode
The pointer to this items parent Node. If this is not relevant for this object then this is NULL...
float m_fltCoefficient
The friction coefficient for this constraint.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
bool m_bProportional
Tells if the friction force should be scaled based on the force applied to the joint.
bool m_bEnabled
Tells if this item is enabled or not. If it is not enabled then it is not run.
float m_fltMaxForce
The maximum force for this constraint.
Declares the vortex structure class.