character slope rotation

hi,
I planned to rotate character manually at slopes and below two methods gives me a strange results..

game settings->characterBody-circle Shape( radius = 4, friction = 2(for ground grip),no change in density and restitution).
characterBody->setFixedRotation(true);
slope - created with b2EdgeShape..
characterBody Movement - ApplyForce() method....( character moves only in +ve x direction )..
game origin - TOP LEFT CORNER...


method 1-> if( characterBody->GetLinearVelocity().x >= 0 )
{
_target = characterBody->GetPosition() - prevPos;
}
_angle = atan2f( _target.y, _target .x );
prevPos = characterBody->GetPosition();

characterSprite->rotate( -_angle );
characterSprite->translate( characterBody->GetPosition().x, characterBody->GetPosition().y );
While applying method 1 my character rotates to and fro and than adjusts its rotation( especially in middle of the slope )..


method 2 ->

for ( contact* contact = World->GetContactList(); contact; contact = contact->GetNext() )
{
// only two bodies in the world at present for test purpose...

b2WorldManifold manifold;
contact->GetWorldManifold( &manifold );
_target = manifold.normal;
_target.Normalize();
}

_angle = atan2f( _target.y, _target.x ) + 3.14/2.0f;
characterSprite->rotate( -_angle );
characterSprite->translate( characterBody->GetPosition().x, characterBody->GetPosition().y );

While applying method 2 my character rotates to and fro( kind of jerk ) especially at edge of the slopes and adjust its
rotation, if i decrease radius of the circle to 2 jerk is less but still visible...

I increased characterBody gravity scale at slopes to decrease jumping in air but still rotation jerk continues...

waiting for Ur reply 🙁

Original thread: https://box2d.org/forum/viewtopic.php?t=9569