Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 SuperRaed · Sep 27, 2017 at 02:02 PM · rigidbodyrigidbody2dphysics2d

How to move a Rigidbody2D along another Rigidbody2D

I have two Rigidbody2D objects, the triangle and the platform ,as in the gif alt text

alt text

why isn't the triangle moving with the movement of the platform and how can I do that?

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 Cuttlas-U · Sep 27, 2017 at 02:12 PM 0
Share

hi; i cant see a gif;

avatar image SuperRaed Cuttlas-U · Sep 27, 2017 at 02:13 PM 0
Share

http://gph.is/2xwoF8l I will repost it, meanwhile here's a link

avatar image Cuttlas-U SuperRaed · Sep 27, 2017 at 02:19 PM 1
Share

i saw the gif; that's just the way it works;

the below platform wont do any thing like that to the triangle;

to do it u can just child the traingle object to the platform GameObject ;

  transform.SetParent(PlatformTransform, false);
Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Cuttlas-U · Sep 27, 2017 at 02:35 PM

yeah there is ; u can use joints ; like fixed joints; there is a good tutorial here :

Tutorial joints

Comment
Add comment · Show 2 · 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 SuperRaed · Sep 27, 2017 at 02:44 PM 0
Share

the idea never occurred to me, I will be sure to check it out. but can you explain to me how it's supposed to work? so an object lands on the platform and a "fixed joint" is formed at the point of contact, which would allow it to move along with the platform?

avatar image Cuttlas-U SuperRaed · Sep 27, 2017 at 02:49 PM 0
Share

yeah it will allow it to move along with the platform ( if u use a Fixed joint)

but i did not know it has to fall down on the platform;

because joints wont let that happen ;

so u can let it fall into the platfrom then with a collision detection detect the impact and at the same time add a fixed joint the traingle so it move with the platform from that time ;

but i think make it the child would be better :)

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

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

Related Questions

Rigidbody rotate velocity 0 Answers

Adding force to a rigidbody opposite to the direction of a rotating weapon 0 Answers

RigidBody becomes awake without a collision 1 Answer

Collision sticking? 1 Answer

Can I rotate a hinge joint where the angle limits aren't working?,Can I rotate a hinge joint, to minimize its rotation when angle limits aren't working? 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