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 /
  • Help Room /
avatar image
0
Question by AngelisDragon · Jun 20, 2013 at 07:21 AM · addforcehingejointspring

Is there any way to get a hinge joint to NOT let an object spring back to its original position?

Oh, and while I'm at it, how do you add force to an object in the direction you are facing?

Thanks :D

Comment
Add comment · Show 4
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 · Jun 20, 2013 at 11:50 PM 0
Share

A vanilla hinge is like a real hinge -- it has no special desire to spring back after it gets swung.

Are you saying you want the hinge to never unbend? It can never reduce the angle, only increase it, like a zip-tie?

avatar image AngelisDragon · Jun 21, 2013 at 08:01 AM 0
Share

A vanilla hinge? I've never heard of one before.

And no, I just want it to act like a normal door, to be able to open and close and stay open and stay closed.

avatar image Owen-Reynolds · Jun 21, 2013 at 03:55 PM 0
Share

So you want to make a hinge that only swings one way -- unlike the normal one that can swing both ways? When you close it, it does go back to the original position (not past the other way, like a standard hinge.) If so, your question is sort of the opposite of that.

What about when you slam it? Should it bounce back, or just lock open? (normal doors do either.)

I think a more specific, detail question might help. But then, you may find answers here about adjusting hinges as you narrow down.

avatar image AngelisDragon · Jun 22, 2013 at 06:01 AM 0
Share

Yes, I may not have been specific enough.

I want a door that can swing freely backwards and forwards, be able to open inwards and outwards. But not to always go back to its original position (as it has been placed in the scene). The hinge joint always seems to want to do this. Now that I think of it, the door will also require a script that upon a command (pressing 'E'), force will be added to the door in the direction you are facing.

So in other words, it is like a door without constraints, and swings freely on its hinge, ins$$anonymous$$d of what it is doing currently, which is acting like there is some kind of elastic pulling it back to its original position/rotation.

Hope that helps.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by peter_field · Sep 04, 2013 at 11:04 AM

You might have the Use Limits box ticked. I just had the same issue so I unticked that box and the problem was solved.

The default values for min and max limits are 0 so if you tick this box without expanding and changing any of the limits values the door would always try to close.

alt text


1.jpg (39.1 kB)
Comment
Add comment · Show 1 · 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 AngelisDragon · Nov 06, 2013 at 08:15 AM 0
Share

Ok I'll check this out when I can. I haven't been able to recently because of computer problems etc.

avatar image
0

Answer by SuperUltraHyper · Oct 12, 2017 at 11:50 AM

rididBody.freezeRotation = true;

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.

Follow this Question

Answers Answers and Comments

17 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 avatar image

Related Questions

How to get Target Position to follow another Hinge joint Angle? 2 Answers

Joint two carriages with hingejoint in runtime 0 Answers

Children of a hingejoint not colliding with parent's mesh when connectedBody is assigned 1 Answer

Keep gravity while adding velocity to a Rigidbody? 1 Answer

Character controller adding force to an object (soccerball) - working fine but getting error messages 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