Make physics constraint at run-time and assign two actors, NOT two components

I want to make a constraint at run-time to act as a hinge between two actors, but the only option I have in blueprints is to set the components. I want to set the actor references like you can in the details panel.

Hmm, I think you can’t assign actors to constraints, just components. But it’s not a problem, since from any actor reference, you just get the parent component and use that.

So how you would do it:
Add Physics Constraint Component.
Then drag from it Set Components(or something like that) and get the 2 actors parent components that are simulating physics to the input pins.

Hopefully this helps, cheers! :slight_smile:

It’s still not working :'. It’s probably something really obvious that i’m missing but if you could help me that would be great. I have an actor class for my panel set up as such
Imgur
and another actor class set up for the connections between the panels as such
Imgur
(These both need to be full classes for various reasons)
In my blueprint I perform 4 ray casts to see if there are objects beside the panel that was placed, and if there wasn’t, it spawns a connector in that direction and attempts to connect them with the physics constraint component (x/y +/-). I then have it set simulate physics to true to test if this was successful.
Imgur
When I go in game and place a panel, everthing works properly except the connectors fall as if there is nothing binding them
Imgur
If there is anything I’m missing here please let me know.