Other
Rigidbody looses momentum with contact to ground. Why?
Hi,
So i've been making a character using a rigidbody in C#. The character walks and jumps well. However if the character falls off a platform or you jump, when you hit the ground you loose your momentum in X/Z direction.
E.g. I'm holding down W to walk forward, the character walks forward and falls off a platform, the character still goes forward whilst falling, but as soon as I hit the ground the character comes to a stop before going forward again.
When the character hits the ground it seems to clip through the surface (cube) for a quick moment, before sitting on top of surface. I've tried using physic materials on the capsule collider and the ground (cube collider), but no luck.
Does anyone know whats going on ? Any help would be appreciated.
Answer by Mike_Tide · Oct 24, 2016 at 04:20 AM
,This may just be a unity bug. Have you tried using the character controller instead? I find the character controller easier to use in most situations, however there are a few faults with it itself.
Answer by maxtyt · Oct 24, 2016 at 09:28 AM
Try setting collision detection to Continuous Dynamic on your player's Rigidbody.
Answer by Zackary97 · Oct 26, 2016 at 11:40 PM
Are you using rigidbody.AddForce to move your GameObject? Try changing the position like this: transform.position += new Vector3(x, y, z);
Follow this Question
Related Questions
Adding Gravity to a game object to make a black hole sucking effect. 1 Answer
Rigid body robot animation 0 Answers
Applying Force to the Character 0 Answers