Physics Constraint “SetDisableCollision” function works the first time on two objects, but after deleting the constraint and creating a new one, it now won’t disable collision anymore. seems like an engine bug but maybe i am missing something?
It does work only one time with each pair of constrained objects. in my case there are two actor classes - X and Y.
each time they get close at some angle, i create a temp constraint for them which i delete after some event and let them free.
x1,x2,y1,y2 are instances of the classes.
x1+y1 get constrained the first time and SetDisableCollision works fine.
the second time x1+y1 get constrained and SetDisableCollision fails.
when x1 however meets y2, SetDisableCollision works fine again.
then second time of these two fail.
when x2 meets y1 and y2, same behaviour. even if one of them failed with x1 before, it will work the first time with the new x2.
the above situation proves this “bug” happens only on pairs of objects and not on one specific amongst them.