• 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 Greenwar · Feb 08, 2015 at 07:36 PM · physics2dhingejoint2d

Set value of HingeJoint2D.jointAngle?

Hey guys, I desperately need to, somehow the HingeJoint2D.jointAngle of an object. I've got this rope (bunch of hinges) which keeps spasming out whenever i disable/enable it and I've narrowed it down to the first piece of the rope adding -720 degrees when its enabled.

I've tried resseting the local transform/rotation values, but that doesnt help so i really need to set the jointAngle somehow.

Is there any way I can do this, be or it legit, hacky or otherwise?

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 Greenwar · Feb 09, 2015 at 04:02 PM 0
Share

One more thing, a plausible workaround would be to reset all of the hingejoint2d values (jointAngle, refrenceAngle, etc). However i don't know if thats possible to do at runtime without creating a new object?

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

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

Hinge joint 2d combined with relative joint 2d jitters with increasing linear offset 0 Answers

How can i make a ragdoll stickman controller? 0 Answers

HingeJoint2d joint going crazy 0 Answers

hinge joint 2d rope flies apart 1 Answer

HingeJoint2D physics different between editor and build (see images inside) 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges