Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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: https://www.youtube.com/watch?v=RZjTvm2pJUM

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.

Product Version: UE 4.18
more ▼

asked Jan 06 '18 at 07:58 AM in Using UE4

avatar image

8 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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): alt text

Physics Asset Editor documentation: https://docs.unrealengine.com/latest/INT/Engine/Physics/PhAT/

more ▼

answered Jan 06 '18 at 10:19 AM

avatar image

611 23 11 27

avatar image gomi Jan 06 '18 at 11:21 AM

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 : https://docs.unrealengine.com/latest/INT/Engine/Physics/Constraints/ConstraintsBlueprints/index.html#usage

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

avatar image Iohoilpotere Jan 06 '18 at 12:00 PM

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 :P I mean the constraint in the PhAT, I attach you an image: alt text

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 :)

phat.png (950.6 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question