x

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 attach a ragdoll skeletal mesh to a static mesh in run time?

I ragdoll the player character after a spear hits him .

now I want to attach him to that spear.

I tried to do that but he backs to animation alt text

Product Version: UE 4.12
Tags:
z.png (105.4 kB)
more ▼

asked Aug 11 '16 at 08:24 PM in Blueprint Scripting

avatar image

saeedc
2.4k 73 42 108

avatar image saeedc Aug 11 '16 at 08:36 PM

he is attached to that spear and follows that until the spear stops or hits a wall but in animation state not ragdoll

avatar image saeedc Aug 12 '16 at 04:16 PM

any idea?

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

3 answers: sort voted first

Hi saeedc,

I added this to the FirstPersonProjectile component and it seems to work pretty well. It should at least give you a good starting point.

alt text

Cheers,

TJ

spear01.png (174.8 kB)
more ▼

answered Aug 12 '16 at 06:29 PM

avatar image

TJ V ♦♦ STAFF
41k 1009 183 494

avatar image saeedc Aug 12 '16 at 07:37 PM

Hi TJ thank you for your reply

I asked about attaching a ragdoll to a projectile.

ragdoll backs to animation when I attach it to a projectile.

this is my graph alt text

that skeletal mesh no longer simulate physics after attach

spear.png (151.4 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

maybe ATTACH COMPONENT TO ACTOR(or comp) could help you

if it doesn't work, you can consider to write a function using Set Socket Location and exec it every tick

good luck!

more ▼

answered Aug 22 '16 at 04:40 AM

avatar image

bot_hopps
23 1 2 5

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

if u want to stop anim playing, just follow these step:

get mesh-set anim instance(null) 【in bp or c++】

get mesh-set simulate physics(true) [significant]

don't forget to set collision type to block all or sth else

more ▼

answered Aug 22 '16 at 01:41 PM

avatar image

bot_hopps
23 1 2 5

avatar image saeedc Aug 22 '16 at 08:56 PM

Hi.

now my character is in T pose after attach.

have you tried it yourself?

character is attached and follows spear correctly but ignores physics simulation. I don't know why.

and even if I set its physics after attach it ignores attach and falls.

(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