Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to query Obi geometry with raycasts?
#15
(11-01-2022, 08:53 AM)KyleJohnOConnor Wrote: Ah I actually just found that manual page as well! Gran sonrisa Perfect.

One question is: Will the query return anything if the Obi solver has been disabled? 
For some context: I'm moving a cloth around and nailing it in place. Once the player is happy with the placement: the Obi solver for this particular cloth gets disabled to 'freeze' the cloth in place. Would a spatial query raycast return true even though the obi solver in the path of the raycast is disabled?

Yes, queries will be performed against the most up-to-date data provided by the solver. A disabled solver simply does not update this data, but it's still there.

If you want to ignore queries against a disabled solver, check whether the solver is disabled before performing the query.
Reply


Messages In This Thread
RE: How to query Obi geometry with raycasts? - by josemendez - 11-01-2022, 08:59 AM