SolidReference behavior #4054
ShuffleWire
announced in
Q&A
Replies: 1 comment
-
Ok my bad, as long as I understand it correctly, there is just some "implicit solid merging" going on ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone !
I'm playing with SolidReference, and notice the following behavior : This world work fine : (a "robot" made of a body and a wheel, linked with a hinge, bump on the floor and rest)
world file
But if I move the solid "Wheel" as a children of the Robot node, and use a solidreference on the hinge, the simulation doesn't work (or at least the behavior is not the same)
world file
I expect that both way yield the same results, is that correct ?
The doc about SolidReference state that : "The only constraint when referring to a Solid is that both Solid and Joint must be descendants of a common upper Solid." In my case, They are both descendants of a Robot which itself inheriting from Solid, so that should be ok.
EDIT : I've transformed the Robot node into a Solid Node with the same result, the inheritance shouldn't be the issue, then. Moreover, using a SolidReference to a node that is already inside a Joint work fine (as showcased in the SolidReference doc). It's seems that it's only because of the fact that the SolidReference I'm using is pointing to Solid that are not inside a Joint. It look like the target of the SolidReference default in that case to the root of the world or something like that.)
EDIT2 : I've changed the target of the solidReference to "static environnemnent" and got the same result than setting it to "solid(1)", which seems to indicate than there is some sort of issue with the SolidReference target
I've experimented with adding another Solid node just between the Robot node and it's children, that help a bit, but cause me others trouble on others use case, and I don't like putting Solid inside Solid...
world file
Finally, I've managed to get that thing working by putting my wheel Solid as a children of the Robot, and the Hinge joint in a Solid (solid(1)).
But I don't like this solution (solid(1) is kinda useless and hacky, I feel), and that don't match the doc statement, (solid is not a child of a Solid)
world file
Any idea what could cause the issue ?
EDIT : Sorry for the messy post, I'm adding info along the way :)
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions