11-01-2022, 08:59 AM
(11-01-2022, 08:53 AM)KyleJohnOConnor Wrote: Ah I actually just found that manual page as well! 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.