Hinge that it is returned as an elastic effect. I don’t know how to explain it but i try:
This is my code:
if(Input.GetKey("up")){
angle += Time.deltaTime * 100;
angle = Mathf.Clamp(angle, 10,65);
raqueta[0].localRotation = Quaternion.AngleAxis (angle,Vector3.forward);
}
what I want to do is that when I stop touching the button “up” my object will rotate backwards as if it has an elastic.
I don’t want to use the Hinge Join 2D, I’ve tried it and the effect is very bad.