Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RemoveConstraint error
#4
(10-01-2023, 11:53 AM)Seahorse Wrote: 1. When I remove actor batches of constraints, they'll update the local Blueprint source, which isn't what I wanted.
If I want to remove the constraint specified at run time, should I remove it from the actor batch?

When an actor gets added to a solver at runtime, its local constraint batches (or rather, the ones in its blueprint) are copied and inserted into the solver batches, together with the constraints of all other actors that have been previously added to the solver.

So you remove it from the solver's batch. However you don't remove the one at index i, you remove the one at index offset + i. The offset is the index at which the first constraint pertaining to that actor is located inside the solver.
Reply


Messages In This Thread
RemoveConstraint error - by Seahorse - 10-01-2023, 09:49 AM
RE: RemoveConstraint error - by josemendez - 10-01-2023, 10:26 AM
RE: RemoveConstraint error - by Seahorse - 10-01-2023, 11:53 AM
RE: RemoveConstraint error - by josemendez - 10-01-2023, 12:00 PM
RE: RemoveConstraint error - by Seahorse - 10-01-2023, 12:48 PM
RE: RemoveConstraint error - by josemendez - 10-01-2023, 02:05 PM
RE: RemoveConstraint error - by Seahorse - 10-01-2023, 02:24 PM