Making a moving swinging object

Hi im trying to make a moving swinging obeject in my level that swings left to right from when the level starts. ive created a static mesh which ive connected to a physics constraint actor. im just stuck on how to blueprint it moving. help please?

Here is how i set it up to make a flail that swings as the game begins or whenever i swing it:

Once you put those into your BP select the physics constraint component and put the swinging part to component name 1 and the base to component name 2 section. Make sure Linear limits are locked and angular limits are free.

And here you can see how it behaves in-game:

thanks for your reply, i have managed to make it swing. do you know how i can make it so it swings constantly when the level starts on its own please?

It should swing by itself for quite a while if you dont enable Angular Orientation Drive and Angular Velocity Drive in physics constraint component properties. If you want it to swing forever then you’ll need to apply some sort of force to it(Add Impulse node) or just animate the motion with a Timeline instead of using physics constraint.

thanks again im new to this, how to i implement the impulse node, ive tried to add it but it don’t move it. thankyou.

thanks again im new to this, how to i implement the impulse node, ive tried to add it but it don’t move it. thankyou.

Plug the swinging mesh to Target input of Add Impulse and set the velocity in the direction you want it to swing. You’ll have to test velocity yourself to see which value suits you the best.

thankyou very much