Menu

#4 Simplify Constraint/Force Iteration

General API
open
nobody
5
2006-02-23
2006-02-23
No

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);

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.