Expose mjv_flexBodyIdAndPoint as a helper function.

Use the above in studio rather than a custom implementation.

PiperOrigin-RevId: 928432476
Change-Id: I99d772c4baf7260abbf9ac8f6d8032704f1ba769
This commit is contained in:
Haroon Qureshi
2026-06-08 02:27:55 -07:00
committed by Copybara-Service
parent ea2d785e0a
commit b17b5f7918
3 changed files with 53 additions and 69 deletions
+4
View File
@@ -78,6 +78,10 @@ MJAPI int mjv_select(const mjModel* m, const mjData* d, const mjvOption* vopt,
const mjvScene* scn, mjtNum selpnt[3],
int geomid[1], int flexid[1], int skinid[1]);
// return body id, compute position of a vertex in a flex
MJAPI int mjv_flexBodyId(const mjModel* m, const mjData* d, int flexid, int vertid,
mjtNum flexpnt[3]);
#ifdef __cplusplus
}
#endif