I've created a movement script for a rigidbody that works well except for the fact that it can stick to walls.
What happens is when the player jumps and holds down the key in the direction of the wall, the player just sticks to it and can move along it. I tried creating a physics material with no drag but it doesn't work.
how did you configure it? everything needs to be zero and minimum
@hexagonius The physics material or the rigid body?
material, not the rigidbody
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
154 People are following this question.
how to dostraight ball throwing objects from returning?
Making a connection point system like robocraft
Move a Rigidbody by a specific certain amount in a smooth motion?
Understanding how scripts are used by gameobjects
Using rb.velocity causes low gravity.