Adding relative force at a position

Hello, Is there a way to add relative force to a rigidbody at specified position ? .

Eg: I have a rectangular object on the screen. When I press A, a relative force should be added to the upper left corner of the object and when I press D, a relative force should be added to the upper right corner of the object.

Thank you.

There is no AddRelativeForceAtPosition, but you can translate the local position you have into world space before applying the force:

Vector3 worldForcePosition = transform.TransformPoint(yourLocalForcePosition);
rigidbody.AddForceAtPosition(force, worldForcePosition);

Just do

rigidbody.AddForceAtPosition(transform.forward * 10, transform.position);

transform.forward or whatever direction will keep it relative to the transform.