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"

Need Help with Third Person Player Holding Physics Object

alt text I've been trying for a very long time today to get my player character to grab an object that is simulating physics. I don't know how to have an object act as a ragdoll yet stay in the player's hand at the same time. I've tried combining the advice of these two videos: https://www.youtube.com/watch?v=OltZ-xFz8IQ , https://www.youtube.com/watch?v=6WCM9bZiPcQ , but to no avail.

I've included screenshots of some of the code. Trash Bag is the skeletal mesh I want to attach to the player's hand. The Grip socket is a socket in the handle of the trash bag. Boymesh is the player's mesh. The TBAG socket is the socket on the player's hand. HeldObjectLocation is a scene object. If anyone knows how to solve this, please help me. This project is due as a class final project and I want it as functional as possible.alt text

Product Version: UE 4.15
screenshot_3.png (59.3 kB)
screenshots.png (152.5 kB)
more ▼

asked May 13 '17 at 03:49 AM in Blueprint Scripting

avatar image

1 1 2

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

1 answer: sort voted first

Is the object you are snapping TO the parent object a skeletal mesh? If so, simulate physics below the root bone (not including itself). That way the root bone will snap to the target bone on the parent, and all the other bones will simulate physics and provide a ragdoll effect. (In theory)

more ▼

answered May 13 '17 at 04:46 AM

avatar image

62 1 4 5

avatar image Timdeuces May 13 '17 at 05:40 PM

How do you specify which bones get simulated?

avatar image Timdeuces May 13 '17 at 05:50 PM

Nevermind that question, but I have a new problem. The bone that I want to stay rigid is at the end of the hierarchy. When I preview the physics simulation, the model falls a little, then goes crazy and flies in random directions.

avatar image Timdeuces May 13 '17 at 06:40 PM

Also, how does the game know which bone to attach to the player's hand socket?

avatar image palvand May 13 '17 at 08:06 PM

I believe the actor being attached is always attached by the root. Try setting the bones below to simulate, and after that disable simulation for the bone you want to be static. You might be able to fake the attachment bone of the child using offsets on the child actor location.

avatar image Timdeuces May 13 '17 at 11:01 PM

Thank you so much! You pointed me in the right direction, and I just decided to redo the skeleton upside down so the correct end would be grabbed.

(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