This question was created in reference to: [Dynamically created physical constraint component not [Content removed]
I continue as this subject was closed while I was in Hollyday.
Geoff, you were suggesting the cause was the children component was linked to the parent, making them one body.
But in the example file, the auto weld is False on the children component. So they should not be one body.
[Image Removed]
Hi Paul,
This setup will lead to one body since the child is actually a child in the hierarchy. If you want them to be 2 separate bodies, the previous setup worked fine (where the parent and child were both ‘children’ of a separate root component).
Best
Geoff
What is the point of the autoweld then if it welds anyway?
Hi Paul,
I think I’ll do a ‘mea culpa’ here. In your setup you can set it not to weld on creation, but you have the child set to autoweld which is the default setting. If you turn that off the blueprint works as expected.
In your ‘setup’ blueprint the components are already created and already welded - so all the ‘don’t weld’ flag in the setup will do is not weld it to the parent, which it already is - so you are right in this case it won’t do anything in this instance.
Best
Geoff
Hi Geoff,
Thanks for the explaination.
Just to be sure I understand correctly:
- The child component will be welded to the parent in any case if the component are not created dynamically
- The AutoWeld flag will not do anything in this case, since it will not unweld, just no reweld again
If this is the case, I’m not sure I understand the purpose of the AutoWeld flag. Is it only when the component is dynamically created?
Thanks,
Paul
No worries Paul,
The child component in this setup will be welded to the parent _as default_ - but in the settings panel this can be unticked and they will have 2 separate bodies.
If the 2 components are already part of the same body, then the autoweld tick box won’t do anything, but if they are separate they will be.
In this setup, the child is created and assigned to the same body as the parent on construction - by the time the blueprint is run, they are both already part of one body, and that is why this doesn’t work with disabling autoweld. If they weren’t part of the same body it will work as expected. It isn’t really to do with dynamic creation - you could create this dynamically with the same setup and get the same result if the child’s weld setting is set to true.
Does that answer any areas of ambiguity? It is a bit knarly so sometimes it can take a few reads!
Best
Geoff
Hi Geoff,
I’m still confused. They behave like 2 separate bodies, but the behavior on simulation is not what is expected. I provide the example BP.
Could you explain to me how you would do, or point me out an example of a setup that does the following:
- A BP that simulate physics
- Containing a component that also simulate physics, while being constrainted to the BP (like a pendulum).
Thanks,
Paul
Hi Paul,
The attached blueprint is the one I’ve been using. To make it work similar to a pendulum I have unticked the Auto Weld box in both the parent and child within that Blueprint.
[Image Removed]Ensure both of these are unticked in the blueprint on the Details panel - In the version you sent these were still ticked which is essentially the issue you are running into.
Geoff
Hi Geoff,
Thanks for the explanation. Indeed that way it works.
Sorry for misunderstand, thanks for your assistance
Paul
No worries Paul,
Hopefully this all helps clarify the behaviour.
I’ll get this ticket closed off now, have a great weekend!
Geoff