Two fix required to make the methods 'generateContact' and 'generateStateInContact' work correctly:
Heuristic : when using the fixedStep heuristic without any information about the future trajectory of the root, it default to use the static value of the current analysis.
projectSampleToObstacle : the espilon value is now added along the contact normal instead of along the direction of (orthogonalProjection -> projection inside the triangle). This change have been made because when the orthogonal projection is already inside the triangle, the numerical approximations may lead to a direction which go inside the obstacle.
Note that it may be better to completely remove this epsilon at this step, as there is already an offset defined in the limb used to avoid the collision with the contact surface ...
Two fix required to make the methods 'generateContact' and 'generateStateInContact' work correctly:
Heuristic : when using the fixedStep heuristic without any information about the future trajectory of the root, it default to use the static value of the current analysis.
projectSampleToObstacle : the espilon value is now added along the contact normal instead of along the direction of (orthogonalProjection -> projection inside the triangle). This change have been made because when the orthogonal projection is already inside the triangle, the numerical approximations may lead to a direction which go inside the obstacle.
Note that it may be better to completely remove this epsilon at this step, as there is already an offset defined in the limb used to avoid the collision with the contact surface ...