Why doesn't my movement code ever take physics into consideration?

Hi i have tried at least 5 things to make my movement physics considerate, heres some of what i tried:

transform.position

Rigidbody.position

Rigidbody.velocity

Rigidbody.AddForce

Interpolation changes

collision detection changes

all of these somehow backfired in some way. each of them.

Can i see reference code for a first person game controller?

Use Character Controller without a rigidbody and use CharacterController.Move() method