gwangin
January 17, 2023, 12:55pm
1
Hi,
I want to check the collision or overlap between soft body and any bodies.
So, I found that in physx API document.
I want to use overlap_tetmesh_sphere function but, I can’t put tet_finder.
I tried like below picture, but the result is None (tet_finder is integar, but my result is none)
and I use my deformable body assets as mesh_prim and coord_prim
What I do to enable use that function?
I can’t find use of overlap_tetmesh_sphere but, I can’t find any example in every documents.
Thanks,
clow
February 7, 2023, 1:42pm
4
To use the tet_finder functions, first you need to get the interface.
physxAttachment = omni.physx.acquire_physx_attachment_interface()
Next create the tet_finder for the tet mesh
tet_finder_handle = physxAttachment.create_tet_finder(points, indices)
You can then use the handle for all the subsequent queries
output = physxAttachment.overlap_tetmesh_sphere(tet_finder_handle, center, radius)
tet_ids = output["tet_ids"]
2 Likes
system
Closed
March 6, 2023, 10:42pm
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.