• 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
0
Question by Genhain · Feb 17, 2012 at 09:47 AM · physicsragdoll

Ragdoll Manipulation trickery Help.

I'm Making a game similar to Air Voltar, one of those games you kick a player across a map and collect things before you ultimately come to a stop. The way I decided to handle it was when the player is kicked his x.position is kept exactly the same except his velocity in the x is applied to the scenery around him. which means i can have a box scene and have items spawn off screen without having to loop any terrain and such, just certain building's and stuff go past. It worked fine until i tried to make the player a ragdoll model and it just goes miserably wrong, It looks fine when he i sin the air but the minute he comes in contact with the ground he start to move in the x position backwards and awkwardly,jittery, kind of like my code telling his x position to not change and part of his rigid body physics are conflicting somehow.

here is some code to help

 void FixedUpdate () 
 {
     GameObject[] gObjects = GameObject.FindGameObjectsWithTag( "Moving" );
             
     Vector3 position = transform.position;
     position.x = startX;
     transform.position = position;
 }

I have a feeling it's because i don't know how rag doll hierarchy works properly with the rig and root and parent and stuff and all the components that make it up, that is causing the problem..

Essentially I want him to act like the rag doll is moving as it normally would but never move in the X position without constraining it, because that causes it's x velocity to always equal zero which wont do.

Comment
Add comment · Show 1
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 Owen-Reynolds · Feb 17, 2012 at 05:10 PM 0
Share

Have you rammed into any colliders (such as buildings) yet? Do you plan to? I'm guessing that the results of a Translated static collider hitting you will look so horrible that you'll just let the guy move, and decide looping terrain tiles isn't so bad.

0 Replies

· Add your reply
  • Sort: 

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Ragdoll behaving incorrectly when disabling animator component. 1 Answer

Smashing through walls 1 Answer

Help with Ragdoll Character Controller 1 Answer

Making characters strike poses when hit? 2 Answers

human character with ragdoll hair 2 Answers


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