You can probably simplify the code for dealing with
constraints a lot by using the SIM_ConstraintIterator
class. It provides
an interface to loop through all constraints of a
particular type. It
should be easier than looping through the constraints
yourself. You
should also never have to go through the
"getQueryObject" functionin the
solver code. You have the following code:
goalAnchor->getQueryObject().getFieldString ("Options",
0, "objectname",
goalObjName);
Which works fine, but is much slower than:
goalobj = goalAnchor->getReferencedObject(time);