Hello dear friend!
I have a working code, but it doesn’t work as it should for the platform.
velocity = Vector3.Reflect(velocity, collision.contacts[0].normal);
How to implement this idea?


private void OnCollisionEnter(Collision collision)
{
Debug.Log(collision.contacts[0].point.z);
}
This function returns the platform’s position, not the point of contact.
Thanks in advance, I hope you understand me.
