Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 ghaddar0292 · Jul 09, 2013 at 03:44 PM · translatehingejointrope

Translating a gameObject with a Hinge joint?

Hello,

I am having a problem in translating a gameObject with a character joint. The following is my set up:

An empty gameobject which is the parent to capsule segments with character joints except the top segment has a hinge joint. My hinge joint has no connected body to it. A picture is attached to show what I mean.(Its a rope)

alt text

Then in my script I have the following line:

 Translate(0,Rate*Time.deltaTime,0,Space.Self);

I have done this on a lot of other game objects and it works perfectly fine, but none had a Hinge joint. When I apply the script to this specific case the gameobject jitters up and down as if something is preventing it from moving. In this case I think it is the Hinge joint. Note that all the capsules are rigid bodies. How can I solve this issue? If I cannot use translate for a hinge joint then what should I use?

Any help is appreciated.

Thank you very much.

rope.png (30.5 kB)
Comment
Add comment · Show 3
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 robertbu · Jul 10, 2013 at 05:03 AM 0
Share

You can use Translate() on the empty game object at the root. Look at the DragRigidbody.js script that comes with Unity (Assets/Import Package/Scripts) as an approach. You should be able to apply forces to the segments of the rope also.

avatar image ghaddar0292 · Jul 10, 2013 at 08:46 AM 0
Share

Thanks for the reply,

I am using translate on the empty game object and it is not working. It just jitters. I also put another empty game object in the children and applied translate() to the parent empty game object and I see that only the empty game object child is translating the way I want while the other children are not. I do not want to add any forces here to, have any ideas?

Thank you.

avatar image b45h05h4 · Dec 12, 2013 at 11:41 PM 0
Share

I have the same problem, was it solved ??

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.

Follow this Question

Answers Answers and Comments

16 People are following this question.

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

Related Questions

2D hinge joint with sprite 0 Answers

jungle swing type game ...? 0 Answers

get a rigidbody rope move with my character 1 Answer

Creating a rope using skinned mesh renderer 1 Answer

Swinging too long HingleJoint 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