@@ -14,7 +14,7 @@ class TangentialCollision : virtual public CollisionStencil {
14
14
protected:
15
15
// / @brief Initialize the collision.
16
16
// / @param collision NormalCollision stencil.
17
- // / @param positions NormalCollision stencil's vertex positions.
17
+ // / @param positions Collision stencil's vertex positions.
18
18
// / @param normal_potential Barrier potential used for normal force.
19
19
// / @param barrier_stiffness Barrier potential stiffness.
20
20
void init (
@@ -35,31 +35,31 @@ class TangentialCollision : virtual public CollisionStencil {
35
35
// -- Abstract methods -----------------------------------------------------
36
36
37
37
// / @brief Compute the tangent basis of the collision.
38
- // / @param positions NormalCollision stencil's vertex positions.
38
+ // / @param positions Collision stencil's vertex positions.
39
39
// / @return Tangent basis of the collision.
40
40
virtual MatrixMax<double , 3 , 2 >
41
41
compute_tangent_basis (const VectorMax12d& positions) const = 0 ;
42
42
43
43
// / @brief Compute the Jacobian of the tangent basis of the collision.
44
- // / @param positions NormalCollision stencil's vertex positions.
44
+ // / @param positions Collision stencil's vertex positions.
45
45
// / @return Jacobian of the tangent basis of the collision.
46
46
virtual MatrixMax<double , 36 , 2 >
47
47
compute_tangent_basis_jacobian (const VectorMax12d& positions) const = 0 ;
48
48
49
49
// / @brief Compute the barycentric coordinates of the closest point.
50
- // / @param positions NormalCollision stencil's vertex positions.
50
+ // / @param positions Collision stencil's vertex positions.
51
51
// / @return Barycentric coordinates of the closest point.
52
52
virtual VectorMax2d
53
53
compute_closest_point (const VectorMax12d& positions) const = 0 ;
54
54
55
55
// / @brief Compute the Jacobian of the barycentric coordinates of the closest point.
56
- // / @param positions NormalCollision stencil's vertex positions.
56
+ // / @param positions Collision stencil's vertex positions.
57
57
// / @return Jacobian of the barycentric coordinates of the closest point.
58
58
virtual MatrixMax<double , 2 , 12 >
59
59
compute_closest_point_jacobian (const VectorMax12d& positions) const = 0 ;
60
60
61
61
// / @brief Compute the relative velocity of the collision.
62
- // / @param positions NormalCollision stencil's vertex velocities.
62
+ // / @param positions Collision stencil's vertex velocities.
63
63
// / @return Relative velocity of the collision.
64
64
virtual VectorMax3d
65
65
relative_velocity (const VectorMax12d& velocities) const = 0 ;
@@ -85,10 +85,10 @@ class TangentialCollision : virtual public CollisionStencil {
85
85
const VectorMax2d& closest_point) const = 0;
86
86
87
87
public:
88
- // / @brief NormalCollision force magnitude
88
+ // / @brief Normal force magnitude
89
89
double normal_force_magnitude;
90
90
91
- // / @brief Coefficient of friction
91
+ // / @brief Ratio between normal and tangential forces (e.g., friction coefficient)
92
92
double mu;
93
93
94
94
// / @brief Weight
0 commit comments