implement resetMeshData for deformable bodies, this allows better reset for reinforcement learning algorithms.

This commit is contained in:
Erwin Coumans
2021-09-02 17:27:05 -07:00
parent 3577ef8108
commit b6df08b553
9 changed files with 148 additions and 2 deletions
@@ -534,6 +534,7 @@ extern "C"
B3_SHARED_API void b3GetMeshData(b3PhysicsClientHandle physClient, struct b3MeshData* meshData);
B3_SHARED_API b3SharedMemoryCommandHandle b3ResetMeshDataCommandInit(b3PhysicsClientHandle physClient, int bodyUniqueId, int num_vertices, const double* vertices);
B3_SHARED_API b3SharedMemoryCommandHandle b3CreateVisualShapeCommandInit(b3PhysicsClientHandle physClient);
B3_SHARED_API int b3CreateVisualShapeAddSphere(b3SharedMemoryCommandHandle commandHandle, double radius);