- Home /
Question about configuration of physics 3D materials
Hi, I was wondering what I'm doing wrong with my configuration with my physics materials.
I was attempting to make a material that reduces "sticking" behavior. I did so by adding a 0-friction material to both blocks and player (yes blocks I'm making a sandbox game)
This is the biggest (and really only) issue I've ever had with Unity. Luckily I've never made a game that absolutely requires physics material to fix the colliders sticking, but now I want to step up my game and make a legit Minecraft-inspired game. Usually I'd just turn the framerate way up, to like 1000FPS, but that isn't always the best choice, and a big cost in performance. Therefore I come to Unity Answers.
The problem exactly, is not that when I'm walking, I get stuck in walls, but if I jump, then in midair move into a wall, I get stuck in midair and my player almost "ignores" gravity, and eventually gets unstuck, or overtime just VERY slowly slides downwards. Also, if I am walking into a wall, and THEN jump, I can only see very little movement. If i walk into an inward corner and jump, I literally don't go down at all.
Like I said, I tried using a physics 3D material to reduce this issue, but setting friction to 0 made my player bug out like crazy.
I may have sidetracked a little, so I'd like to remind the community that what I'm trying to ask is, what configuration of physics materials, between player and blocks, will cause me to not stick to walls nor glide? I await the reply of the community and will appreciate and acknowledge any support given. Thank you in advance and once again I await your replies!
EDIT
I found out, if I make a physics material with 0.1 friction (dynamic and static) the player only sticks to 2-block high walls and above. Even MORE specific, I think I am landing on the top of the bottom block's collider, even though they are completely lined up!
I am using my new account, have you tried importing the physics materials that unity made?
Assets > Import Package > Physic $$anonymous$$aterials
@$$anonymous$$akakWasTaken I just reread your comment, and deleted my last comment.
I didn't realize at first that you meant the physics material presets. However, I don't have the package option. Can you tell me some of the presets?
I have read that a friction of 0 is good, but you could try other settings and see which ones for you best. Start with the low values and make it .1 higher each time.
@$$anonymous$$akakWasTaken the problem with little or no friction is I bounce all over the place, and the problem with high or 1 friction is I start sticking to walls, and that's why I am posting.
Your answer
Follow this Question
Related Questions
¿How to make a ball react properly against two different physic's materials? 0 Answers
How do I use rigidbody's collision detection modes? 2 Answers
Collider question 0 Answers
Rigidbody stuck in colliders when moving and ricosheting. 0 Answers
OnCollisionEnter but have colliding object not move the object it collides with 1 Answer