- Home /
Player "bouncing" while moving in reverse?
I encountered a glitch where moving backwards across a platform causes the player controller to bounce for no known reason. I figured it might have been caused by the code I had written but the problem existed even after all custom code was commented out. It seems that there are 2 factors that affect it: speed and height. The higher the speed, the greater the bouncing and, while I can't really confirm this, it seems that the player bounces more the farther its y value gets from 0.
Any clue as to what could be causing this?
Using the standard physics with an FPSWalker and Mouse Look attached to the camera. All objects in the game are just cube primitives--just creating a simple demo platformer for class.
Answer by GesterX · May 04, 2011 at 04:12 PM
It sounds like the physics material of your platform is set to "bouncey".
If not that then we would need to know a bit more about your setup (objects in scene, physics used, etc)
Answer by Byterunner · May 04, 2011 at 04:20 PM
I've encountered this as well when using the FPS controller. If you are looking up into the air while walking forward or down at the ground while walking backward you will jump up into the air a bit before gravity pulls you back down to the ground. The effect is that it looks like you're jumping. If this is what you're encountering, you can do all of your gravity calculations before doing the actual movement of the player controller and that should eliminate the bouncing (it did for me).
Answer by Tomasic212 · Dec 23, 2020 at 08:51 AM
Happens to me too. i tried to move every gravity thing i found to the beginning of the Update() but still the same. "https://youtu.be/_QajrabyTJc" This is the video i used to make my script. I also noticed that if i look down while walking forward and jumping it jumps lower. Same looking up (jumps higher). I would really appreciate helping me out with that issue. Thanks, Tom Markovich.
Your answer
Follow this Question
Related Questions
My Player keeps launching into the air 4 Answers
Player Bouncing off Walls 3 Answers
How to make a 2D "trampoline"? 2 Answers
Physics controls with look ahead. 0 Answers
Dictionary - Works in Editor, and in Dev Build, but not in Release Build? 0 Answers