So I’ve been trying to get a smooth gravity collision between 2 objects with C# without using the Gravity from the rigidbody.
But right now the 2 objects slightly clip through each other causing it to look like the object is bouncing.
The code I’m using is
void Update () {
velocity += gravity * Time.deltaTime;
transform.position += velocity * Time.smoothDeltaTime;
}
Does anyone have any tips on how to create a smooth collision between the two?