Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
16 #ifndef BT_BACKWARD_EULER_OBJECTIVE_H
17 #define BT_BACKWARD_EULER_OBJECTIVE_H
111 psb->
m_nodes[j].index = node_id;
117 psb->
m_faces[j].m_index = face_id;
139 for (
int i = 0; i < vec.
size(); ++i)
141 extended_vec[i] = vec[i];
143 int offset = vec.
size();
146 extended_vec[offset + i].setZero();
153 for (
int i = 0; i < residual.
size(); ++i)
155 extended_residual[i] = residual[i];
157 int offset = residual.
size();
161 extended_residual[offset + i].setZero();
185 for (
int i = 0; i <
m_lf.
size(); ++i)
188 m_lf[i]->addScaledDampingForceDifferential(-
m_dt, dv, f);
191 for (; counter < f.
size(); ++counter)
193 f[counter] = rhs[counter] - f[counter];
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
void clear()
clear the array, deallocated memory. Generally it is better to use array.resize(0),...
void resize(int newsize, const T &fillData=T())
btVector3 can be used to represent 3D points and vectors.
The btSoftBody is an class to simulate cloth and volumetric soft bodies.
void push_back(const T &_Val)
int size() const
return the number of elements in the array