How to swing an object when it is moved?

I want to swing my object when it is moved, here is what I want to achieve: - YouTube

That will be a physical object. Like a rope but to the up and less curl.

How can I achieve this kind of thing ?

Can anyone explain me ?

I can use maya but if it is possible to do it with SpeedTree too I may prefer it.

Hi! To achieve this you need a full rigged tree. Then you have to open the PhysicAsset of your mesh, work on it setting up better collisions if not good enough, and set all the constraints between bones in the proper way (take a loot at the documentation).

PhysicAsset icon (in case you don’t know where it is):

https://docs.unrealengine.com/latest/images/Engine/Physics/PhAT/PhysicsAssetCB.jpg

Physics Asset Editor documentation: Physics Asset Editor | Unreal Engine Documentation

Thanks for the answer. Until I move to my strong machine I will not able to do it. Since my english and knowledge is limited I will confirm what I get from answer.

  1. Full rigged tree : I will cover all branches and trunk of the tree with joints and then I will rig it.
  2. I can set collision if necessary. Is that really needed to achieve it ?
  3. I had some idea about constraints but did not get how is it done. If I set the constraints and example move the mesh in the game left-right anywhere will it ginggle just like in video ?

Here is something : Physics Constraint Component User Guide | Unreal Engine Documentation

Given example is up-down can I do it down to up without being affected by gravity ? When I move that will be deformed but will try to stay traight when moved anywhere

Hi!
I confirm you the point 1.
About point 2 I’m not totally sure you really need collisions but they help to avoid weird overlaps.
3) We are talking about 2 different types of constraint :stuck_out_tongue: I mean the constraint in the PhAT, I attach you an image:

Unluckly this is physics based so if your tree is upside down the branches will dangle UNLESS you set the constraint in order to not move or rotate on the Z axis (couldn’t be the Z, not 100% sure). You may also uncheck “Enable Gravity” from Physics section of your actor to avoid this, but since I haven’t tryied it yet I’m not 100% sure.

To be sure all is working in PhAT you can simulate (use the simulate button in PhAT window) and move your tree using ctrl+drag with right click.

P.S: you can zoom the images on the answerhub by right click and opening in a new tab/window :slight_smile: