Alloerotic, also known as alloerotism, is a term denoting feeling sexual feelings or stimulated sexual urges towards another individuals. It was created as the opposite to autoerotic or desires relating to oneself.
This can be distinct from sexual attraction as sexual attraction is defined as wanting to have sex with a particular individual, while alloerotism is defined as feeling sexual urges towards a particular individual. However, it is occasionally used synonymously with sexual attraction and is an umbrella term for any and all sexual fixations directed towards or caused by other individuals, whether it be sexual urges or sexual attraction.
References
https://www.merriam-webster.com/medical/alloerotism
https://medical-dictionary.thefreedictionary.com/alloeroticism