Add single body constructor for btGeneric6DofSpringConstraint. See Issue 601, thanks to aj.dneg for the patch.
This commit is contained in:
@@ -20,6 +20,19 @@ subject to the following restrictions:
|
||||
|
||||
btGeneric6DofSpringConstraint::btGeneric6DofSpringConstraint(btRigidBody& rbA, btRigidBody& rbB, const btTransform& frameInA, const btTransform& frameInB ,bool useLinearReferenceFrameA)
|
||||
: btGeneric6DofConstraint(rbA, rbB, frameInA, frameInB, useLinearReferenceFrameA)
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
btGeneric6DofSpringConstraint::btGeneric6DofSpringConstraint(btRigidBody& rbB, const btTransform& frameInB, bool useLinearReferenceFrameB)
|
||||
: btGeneric6DofConstraint(rbB, frameInB, useLinearReferenceFrameB)
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
void btGeneric6DofSpringConstraint::init()
|
||||
{
|
||||
m_objectType = D6_SPRING_CONSTRAINT_TYPE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user