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
0
Question by petersonh · Dec 05, 2013 at 05:53 AM · collision2d-physicsmoving platform

2D Physics moving platform with circle collider

I'm having a strange issues where I have a platform that's moving, and an object with a circle collider that falls on top of it.

When the platform moves, the circle collider (and all other colliders) just stays in place, as if the platform where made of ice. I made a similar project in Cocos2d using Box2d and it behaved differently, more how I would expect, ie the circle collider rotating in place when the platform below it moved.

Any ideas how to fix this? I've tried a 2d Physic Material with a bunch of friction on it, but that didn't do anything.

Thanks.

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
1
Best Answer

Answer by nasa8 · Dec 05, 2013 at 07:12 AM

I'm using Unity 4.3 and everything works fine! I've just tried!

I think the problem is in the way you move your platforms. Don't move your platforms changing transform.position or transform.Translate(), move them by changing ridgitbody2D.velocity or by ridgitbody2d.AddForce(). So In your case platform should have ridgitbody2D as well as your circle. Your circle needs ridgitbody which will be affected by gravity and the platform needs ridgitbody because you have to use velocity property. Also don't forget to specify friction parameter i.e = 10

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 petersonh · Dec 05, 2013 at 01:32 PM 0
Share

This is exactly what I needed to do!!

Still a Unity/program$$anonymous$$g noob, had no idea I should be moving the rigidbodies, makes a lot of sense.

Thank you so much! Works perfectly now :)

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

Issues with 2d Player controller(Kinematic) 0 Answers

Physics.Simulate not working in Editor (or Play Mode) 0 Answers

2D collisions not showing all contact points 0 Answers

Bullet Trail not destroying on collision 0 Answers

2D Detect collisions of a 2D block only on left/right (not top/bottom) 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