13-06-2024, 08:59 AM
(This post was last modified: 13-06-2024, 09:05 AM by josemendez.)
(13-06-2024, 08:37 AM)kripa1415 Wrote: Hi,
Is it possible to find if there is any rope exists on mouse clicked position ?
something like Physics.OverlapSphere() by passing position and collision radius ?
Hi,
Yes, you can use spatial queries for this. They give you a lot of information regarding all particles overlapped by the shape.
Note that once you get particle index/indices from the query, you can retrieve the actor it belongs to by looking it up in the solver.particleToActor array.