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
1
Question by pahe · Mar 15, 2011 at 09:12 AM · physicsjointslift

lifting physic objects with dynamic weight objects on it

Hi.

I want to create a lift for my project which should be affected by a dynamic number of weight objects on it.

The lift should get a force which moves it up to a specified height which depends on the summed up weight of the weight objects and then stop.

I.e.: There are three objects on the lift with the same weight. The lift moves up to the third floor (... and there the weight objects are unloaded). If there are ten objects on the lift it will move to the tenth floor (... and unloads).

Now here are my questions:

1.) How could I detect how much weight is on the lift? When there are three weight objects on the lift, is there any force applied on the lift too? Do I have to join the weight objects to the lift for applying the force?

2.) How could I stop the lift when reaching the correct height without having it to fall down?

3.) I think I have to use rigidbodies and physics for my project, but maybe someone has an much easier solution for my project? :)

Thx for help!

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 dissidently · Mar 15, 2011 at 10:40 AM 0
Share

any chance you could draw a quick diagram of what you're trying to do? And any other variations on it that you might have for the future? That way whatever crap "solution" I dream up can have the next options available for extension

2 Replies

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

Answer by pahe · Mar 15, 2011 at 03:32 PM

Thx for the suggestions.

I found a suitable solution with the configurable joint:

http://unity3d.com/support/documentation/Components/class-ConfigurableJoint.html

Its a bit trail & error but fits my requirements best :)

regards

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

Answer by efge · Mar 15, 2011 at 11:04 AM

If you want to use objects with Rigidbodies (maybe because you need them before and after the lift sequence), I would suggest switching physics off:

Let the player put the objects on the lift.
Before the lift sequence starts disable physics for all objects by using rigidbody.isKinematic = true;
Count the weight of the objects by using Rigidbody.mass, (sum = floor)
Play your lift sequence or animation.
At last enable physics for all objects by using rigidbody.isKinematic = false;

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

No one has followed this question yet.

Related Questions

How to make Character Joint rotate towards a rest position? 0 Answers

Connecting SpringJoint2D to Rotating Rigidbody2D With Correct Anchor 0 Answers

consecutive angularxdrive.positionspring.equals() not working 0 Answers

Bend object with physics interaction 0 Answers

Rigidbody hover, bodies connected with joints should hover together. 0 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