75 size_t id0 = node0->
index;
76 size_t id1 = node1->
index;
77 size_t id2 = node2->
index;
78 size_t id3 = node3->
index;
83 force[id0] -= scale1 * force_on_node0;
84 force[id1] -= scale1 * force_on_node123.getColumn(0);
85 force[id2] -= scale1 * force_on_node123.getColumn(1);
86 force[id3] -= scale1 * force_on_node123.getColumn(2);
104 P += (F - R) * 2 *
m_mu;
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
int size() const
return the number of elements in the array
The btMatrix3x3 class implements a 3x3 rotation matrix, to perform linear algebra in combination with...
btMatrix3x3 adjoint() const
Return the adjoint of the matrix.
btMatrix3x3 transpose() const
Return the transpose of the matrix.
void setIdentity()
Set the matrix to the identity.
btScalar determinant() const
Return the determinant of the matrix.
This class is used to compute the polar decomposition of a matrix.
unsigned int decompose(const btMatrix3x3 &a, btMatrix3x3 &u, btMatrix3x3 &h) const
Decomposes a matrix into orthogonal and symmetric, positive-definite parts.
The btSoftBody is an class to simulate cloth and volumetric soft bodies.
btVector3 can be used to represent 3D points and vectors.
btScalar m_element_measure