Hi,
Im new to unity.
So it’s maybe very simple question to someone.
I have some spheres that moves by drag.
Each sphere has own rigidbody and sphere collider.
I want to know local contact position when two sphere collides.
void OnCollisionEnter(Collision collision) {
ContactPoint contact = collision.contacts[0];
Quaternion rot = Quaternion.FromToRotation(Vector3.up, contact.normal);
Vector3 pos = contact.point;
pos.x
}
pos.x is a World position(or global position)
See attached image.
Help me out
Thanks.