• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
5
Question by Ian Spangler · Mar 17, 2010 at 04:37 PM · rigidbodycharacterragdolljointsmass

Instantiated ragdoll behaves differently than when placed in scene manually

Question: Why does my ragdoll behave differently when instantiated versus when it's placed in the world at authortime?

Details: I have a rigged ragdoll model of a dog that is stored in a prefab. I did not use the Ragdoll Wizard to set its joints as it seems like it's geared toward human ragdolls. So I added character joints manually and set the properties according to a reference I found on dog locomotion. The dog skeleton is composed of 29 rigidbodies/character joints each with a mass of 1. The root object also has a rigidbody attached and I have its mass set to 29 -- the sum of the masses. (Setting the mass of the root rigidbody to something low ironically makes the dog very heavy while setting the masses of the joints to something low causes the dog to go into freakish convulsions so it seems that these are the only settings that work as far as masses go).

The problem I have is that when I place the dog prefab manually into my object hierarchy at authortime and set him loose with gravity, his joints do bend with the proper degree of fluidity and twist/swing range that I specified. However, when I instantiate the dog using var newDog = Instantiate(ragdoll_dog, position, rotation), he falls like a rubber duck -- way too loose! What might be going on here?

Appreciate any insights. I can't seem to figure this one out.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Olie · Mar 27, 2010 at 01:08 AM 1
Share

You might mean a rubber chicken. Rubber ducks are fairly stiff. ;)

avatar image Stankiem · May 12, 2016 at 04:45 PM 0
Share

Did you ever get an answer to this? I'm having very similar issue with character joint not working when prefabbed and instantiated. All the answers below look to be just asking for more info.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by runevision · Mar 18, 2010 at 11:14 AM

This should not be the case.

Can you try to record a video using Jing or similar that shows:

  • The ragdoll prefab being dragged into the scene view manually while in play mode.
  • The ragdoll prefab instantiated at the exact same position while in play mode.

...and post a link to it in your question?

If there is a difference indeed and nothing else is affecting the ragdoll to make it behave differently, it is a bug, and we would appreciate a bug report with a minimal project which reproduces the problem.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ian Spangler · Mar 19, 2010 at 05:01 PM 0
Share

I've just recorded video of a $$anonymous$$imal test project as you asked: http://www.screencast.com/users/IanSpangler/folders/Jing/media/0a205d25-f0b2-4d93-abfb-1d9f7b3cbd43

I set all the properties for each of the 29 joints to 0 for testing purposes. As a side note, in the authortime scenario, the ragdoll seems a little too bouncy and bendable given that everything's set to 0. And it's even more snappy when I set the mass of the root joint to 29, so I've set it to 1 ins$$anonymous$$d. I have capsule colliders on some of the joints, but no particular physics material assigned.

avatar image Ian Spangler · Mar 19, 2010 at 05:10 PM 0
Share

I can also provide a download of the files for this project for you to look at if that would help. Thanks.

avatar image runevision ♦♦ · Mar 22, 2010 at 09:33 AM 0
Share

@Ian Spangler : Thanks for the video. We would appreciate a bug report with a $$anonymous$$imal project which reproduces the problem. (Include a link to the video as well.)

avatar image Ian Spangler · Mar 22, 2010 at 02:45 PM 0
Share

I've submitted a bug report with the project attached. What would be the ETA for fixing this bug? If it will not be for a while, I will have to implement a workaround.

avatar image runevision ♦♦ · Mar 22, 2010 at 02:58 PM 0
Share

@Ian Spangler : What is the case number of the bug? In any case, I would recommend trying to find a workaround. The bug will likely get fixed in the next version of Unity at the earliest.

avatar image
0

Answer by The-Arc-Games · Oct 29, 2011 at 07:38 AM

@"Ian Spangler" We would be very glad to take your model to test with our ragdoll generator tool if possible. Please get in touch with us through unity forums or our site

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

How to have a character hold teddy bear in hand, using ragdoll and joints? 1 Answer

Ragdoll problem with animations 0 Answers

100% ragdoll driven character... how 5 Answers

How to make a ragdoll not rotate but still be non kinematic? 0 Answers

Move a specific part of a ragdoll, and the rest of the body follow. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges