@@ -123,7 +123,7 @@ struct mjContact_ { // result of collision detection functions
123123 int vert [2 ]; // vertex ids; -1 for geom or flex element
124124
125125 // flag set by mj_setContact or mj_instantiateContact
126- int exclude ; // 0: include, 1: in gap, 2: fused, 3: no dofs
126+ int exclude ; // 0: include, 1: in gap, 2: fused, 3: no dofs, 4: passive
127127
128128 // address computed by mj_instantiateContact
129129 int efc_address ; // address in efc; -1: not included
@@ -1220,6 +1220,7 @@ struct mjModel_ {
12201220 mjtByte * flex_internal ; // internal flex collision enabled (nflex x 1)
12211221 int * flex_selfcollide ; // self collision mode (mjtFlexSelf) (nflex x 1)
12221222 int * flex_activelayers ; // number of active element layers, 3D only (nflex x 1)
1223+ int * flex_passive ; // passive collisions enabled (nflex x 1)
12231224
12241225 // flexes: other properties
12251226 int * flex_dim ; // 1: lines, 2: triangles, 3: tetrahedra (nflex x 1)
@@ -2104,6 +2105,7 @@ typedef struct mjsFlex_ { // flex specification
21042105 mjtByte flatskin ; // render flex skin with flat shading
21052106 int selfcollide ; // mode for flex self collision
21062107 int vertcollide ; // mode for vertex collision
2108+ int passive ; // mode for passive collisions
21072109 int activelayers ; // number of active element layers in 3D
21082110 int group ; // group for visualizatioh
21092111 double edgestiffness ; // edge stiffness
0 commit comments