Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Finding Rope existence on mouse click
#1
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 ?
Reply
#2
(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.
Reply
#3
Ah okay Thanks!. Its working.
Reply