Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 crazybmanp · Oct 18, 2015 at 09:28 AM · 2drigidbody2dphysics2ddragfriction

Remove Drag/Friction

I have some objects that are supposed to move around the stage "floaty". I have looked everywhere i can think of and i just cannot make them move with less drag or friction. To note:

  • these are unity 2d objects not colliding with anything (also tested, and needs to work when colliding with themselves)

  • the Rigidbody2d is set to fixed rotation and linear drag = 0.

  • they are set Gravity Scale = 0, so that they may freely move around (this is supposed to be seen as top-down).

  • They have a physics 2D material set to friction 0 and bounciness .5

I can update with more info as requested, but at this point i'm not sure what information would be useful.

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 DiegoSLTS · Oct 18, 2015 at 01:05 PM

I just did exactly (and only) that and the object moves without any drag. How are you moving the object? Does it have a collider? Is it colliding with something else?

If it's colliding try adding physics2D materials to each collider, setting the friction to 0 in both of them.

Comment
Add comment · Show 4 · 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 crazybmanp · Oct 18, 2015 at 06:34 PM 0
Share

The objects each are built from a common prefab and have a circle collider 2D on them and a Rigidbody 2D. I am placing them close enough to shove each other out of the way, and they just slowly move to the sides and then stop moving. They have a physics2D material that applies friction 0 and bounciness .5.

I have also tested them by applying force to them programatically (this was on click, for a small time frame)

In all cases to immediately slowdown regardless of whether or not they are touching anything.

avatar image DiegoSLTS crazybmanp · Oct 19, 2015 at 03:43 AM 0
Share

Can you share the scene where this is happening? Or a little project where this can be reproduced?

avatar image crazybmanp DiegoSLTS · Oct 21, 2015 at 09:23 AM 0
Share

At this point i'm not sure if its just a case of the physics engine just not doing what i think it can do or what, but here is my current project completely stripped down.

once run, a left click by the player will spawn a "cell" prefab, which is stripped to just be a circular sprite with a circle collider, rigid body and the other required parts.

If you place 2 nearby they nudge each other out of the way as expected. However, they stop after they cease touching.

Now, from being set friction-less and to have 0 linear Drag, i would expect that these objects would continue drifting since they still have momentum and are not touching anything with friction on it.

link to 7z of project: https://drive.google.com/file/d/0B8-nuQ404VzTOGFWNG92$$anonymous$$E9SLTQ/view?usp=sharing

Show more comments

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Using child colliders with rigidbodies/joints in 2D 0 Answers

Ball bounces at different heights when it shouldn't 0 Answers

Create a simple constantly swinging vine/rope 1 Answer

Rigidbody2D freezes 1 Answer

AddingForceAtPoint not doing anything 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