• 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 Goody! · Jan 04, 2010 at 12:56 AM · physicsgravityconfigurablejoint

Create a "balloon" that is anchored to the ground by a string and will return to its start position after bumped.

I'd like to have an object that behaves like a helium filled balloon attached to a stiff string that is anchored to the ground. Another way to think about it would be a blade of grass responding to a wind blowing over it. I've tried a spring joint with the y anchor point raised but it works the opposite of what I need, like a rock hanging on a string. A negative Y anchor creates unwanted behavior.

Is a configurable joint the way to go and if so can you please talk me through the steps to create it.

Hrrm, and as a second quick question, are joints expensive on the Iphone?

Thanks, --Goody!

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by runevision · Jan 04, 2010 at 10:43 AM

If you got it working like a rock on a string, then you probably only need to invert the gravity for that object to make it work like a balloon instead.

You can uncheck the checkbox on the Rigidbody for "Use Gravity" to make it not use the global gravity force.

Then you can add a Constant Force component and specify a force that goes upwards.

Comment
Add comment · Show 3 · 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 Goody! · Jan 04, 2010 at 03:37 PM 0
Share

Thanks Rune! I thought of that on the drive to the store and have implemented it with some small success. How about the other question, is it prohibitively expensive to use on Iphone?

avatar image runevision ♦♦ · Jan 05, 2010 at 10:08 AM 0
Share

Are configurable joints prohibitively expensive on iPhone? That really is a separate question, and you are more likely to get responses to it if you post it separately. (I don't know the answer myself.)

avatar image Goody! · Jan 11, 2010 at 12:18 AM 0
Share

Thanks again Rune.

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

No one has followed this question yet.

Related Questions

Calling OnJointBreak on Connected body 1 Answer

Changing gravity on collision 4 Answers

Local Gravity (Black Hole) 1 Answer

Does gravity affect kinematic objects? 2 Answers

ConfigurableJoint Target Position/Rotation Issues? 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