2017-08-01 14:30:58 +02:00
|
|
|
|
|
|
|
#ifndef B3_FIXED_CONSTRAINT_H
|
|
|
|
#define B3_FIXED_CONSTRAINT_H
|
|
|
|
|
|
|
|
#include "b3TypedConstraint.h"
|
|
|
|
|
2019-01-03 14:26:51 +01:00
|
|
|
B3_ATTRIBUTE_ALIGNED16(class)
|
|
|
|
b3FixedConstraint : public b3TypedConstraint
|
2017-08-01 14:30:58 +02:00
|
|
|
{
|
|
|
|
b3Vector3 m_pivotInA;
|
|
|
|
b3Vector3 m_pivotInB;
|
|
|
|
b3Quaternion m_relTargetAB;
|
|
|
|
|
|
|
|
public:
|
2019-01-03 14:26:51 +01:00
|
|
|
b3FixedConstraint(int rbA, int rbB, const b3Transform& frameInA, const b3Transform& frameInB);
|
|
|
|
|
2017-08-01 14:30:58 +02:00
|
|
|
virtual ~b3FixedConstraint();
|
|
|
|
|
2019-01-03 14:26:51 +01:00
|
|
|
virtual void getInfo1(b3ConstraintInfo1 * info, const b3RigidBodyData* bodies);
|
2017-08-01 14:30:58 +02:00
|
|
|
|
2019-01-03 14:26:51 +01:00
|
|
|
virtual void getInfo2(b3ConstraintInfo2 * info, const b3RigidBodyData* bodies);
|
2017-08-01 14:30:58 +02:00
|
|
|
|
2019-01-03 14:26:51 +01:00
|
|
|
virtual void setParam(int num, b3Scalar value, int axis = -1)
|
2017-08-01 14:30:58 +02:00
|
|
|
{
|
|
|
|
b3Assert(0);
|
|
|
|
}
|
2019-01-03 14:26:51 +01:00
|
|
|
virtual b3Scalar getParam(int num, int axis = -1) const
|
2017-08-01 14:30:58 +02:00
|
|
|
{
|
|
|
|
b3Assert(0);
|
|
|
|
return 0.f;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2019-01-03 14:26:51 +01:00
|
|
|
#endif //B3_FIXED_CONSTRAINT_H
|