48 xAxis[1], yAxis[1], zAxis[1],
49 xAxis[2], yAxis[2], zAxis[2]);
void setAngularUpperLimit(const btVector3 &angularUpper)
void setStiffness(int index, btScalar stiffness)
btVector3 & normalize()
Normalize this vector x^2 + y^2 + z^2 = 1.
const btTransform & getCenterOfMassTransform() const
void enableSpring(int index, bool onOff)
void setEquilibriumPoint()
void setDamping(int index, btScalar damping)
btVector3 cross(const btVector3 &v) const
Return the cross product between this and another vector.
void setValue(const btScalar &xx, const btScalar &xy, const btScalar &xz, const btScalar &yx, const btScalar &yy, const btScalar &yz, const btScalar &zx, const btScalar &zy, const btScalar &zz)
Set the values of the matrix explicitly (row major)
The btRigidBody is the main class for rigid body objects.
btVector3 can be used to represent 3D points and vectors.
btHinge2Constraint(btRigidBody &rbA, btRigidBody &rbB, btVector3 &anchor, btVector3 &axis1, btVector3 &axis2)
btTransform m_frameInA
relative_frames
btTransform m_frameInB
the constraint space w.r.t body B
void setLinearLowerLimit(const btVector3 &linearLower)
void setLinearUpperLimit(const btVector3 &linearUpper)
void setAngularLowerLimit(const btVector3 &angularLower)
Generic 6 DOF constraint that allows to set spring motors to any translational and rotational DOF...