Topic: Physics constraint - Setting parentObjectId

Suggestion.
In MScene::prepareConstraints(), if parentObjectId is not null, its value should be used instead of parentName. This will allow dynamic creation of physics constraint without having to retrieve the name of the parent object which may as well not have a name at all since it may have been generated via code.

Re: Physics constraint - Setting parentObjectId

Or, even better, you could put in MPhysicsConstraint a pointer of the MObject3d parent, but I guess the first design is preferred.

Last edited by 255 (2013-10-06 22:54:56)

Re: Physics constraint - Setting parentObjectId

Should I put it in the issues tracker?