14 #ifndef __SDCONTACT_H__ 15 #define __SDCONTACT_H__ 27 double _spring = 1e5,
double _damper = 10.0,
28 double _static_fric = 0.0,
double _slip_fric = 0.0,
29 double _slip_p = 2000.0,
double _slip_d = 700.0,
30 double _slip_func_coef_base = 0.1) {
74 void AddPoint(
double* coord,
double* normal,
double depth) {
75 coords.push_back(
fVec3(coord[0], coord[1], coord[2]));
76 normals.push_back(
fVec3(normal[0], normal[1], normal[2]));
98 int update(
double timestep,
int n_contact,
double* coord,
double* normal,
double depth);
Classes for defining open/closed kinematic chains.
The class for representing a joint.