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 danielmetlitski · Jan 28, 2015 at 04:21 AM · physics2dwallfriction

Vertical wall friction when character is falling and presses into a wall?

Hey guys,

My character moves with transform.Translate, and the wall colliers have physics2D material, but when the character is falling and the player into the wall it does not fall slower. Any advice on how I would go about solving this issue?

Thanks!

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 DocMcShot · Jan 28, 2015 at 04:53 AM 0
Share

So you want your character to move slower when it collides with a wall?

avatar image DocMcShot · Jan 28, 2015 at 04:58 AM 0
Share

Does your character have a physics2D material attached to it? Or could it be that your character has a 3D collider? 2D and 3D collider won't talk to each other. A screenshot or a little more info might help :)

avatar image benjamindellarocco · Jun 08, 2015 at 07:25 AM 0
Share

I am also having this issue. $$anonymous$$y Character has the "Sticky" material attached to it. I move my character with this code

 //NOR$$anonymous$$ALIZE INPUT SO ITS LESS TWITCHY
             horizontalInput.Normalize();
 
             //$$anonymous$$ULTIPLY BY $$anonymous$$TATI$$anonymous$$E SO IT $$anonymous$$OVES PER SECOND NOT PER FRA$$anonymous$$E
             horizontalInput *= Time.deltaTime;
             transform.Translate((horizontalInput.x * 12), 0, 0);

I am trying to have my character stick to a wall when he hits the side of it. I have a sprite with a box collider on it with the Sticky material attached to it as well.

Any Assistance would be appreciated

avatar image DocMcShot · Jun 08, 2015 at 05:39 PM 0
Share

@benja$$anonymous$$dellarocco what do you mean the "Sticky" material? Is that a material that comes with some Unity asset or did you make that material yourself?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Shark-Boy · Jun 08, 2015 at 09:30 PM

If you are using Transform.translate the physics2D material will not effect it as Transform.translate overrides the physics. You can use rigidbody2D.velocity to do about the same thing as Transform.translate. So I would look into that. If you need more help feel free to ask.

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

22 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

Related Questions

Modify friction behavior on Physics 2D Material 1 Answer

How to make paddle influence ball motion in brickbreaker 0 Answers

friction different on ceiling in zero gravity 2D 3 Answers

Physics 2D Frictionless 1 Answer

Physics2D simulation is not taking into acount the material's Friction 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