Get the Object itself that entered OnTriggerEnter

I am currently trying to make a Planetary gravitation script.
Because I want to make things nice and performant, I want to access the object itself that entered the OnTriggerEnter areal to make it movetowards the planet.

This is currently my Script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlanetaryGravitation : MonoBehaviour
{
    public float gravityvalue = 20f;
    public GameObject Planet;

    void OnTriggerEnter(Collider col)
    {
        if (col.gameObject.tag == "Gravitationable")
        {
            col.gameObject.transform.position = Vector3.MoveTowards(col.gameObject.transform.position, Planet.transform.position, gravityvalue * Time.deltaTime);
        }
    }
}

In engine I don’t get any Bugs, but nothing really happens. Does anyone know the solution?

That’s “Collider col”.

You never said this callback never happens, just “nothing really happens” which could mean anything. In the very least, if you’re new, don’t add stuff in and include conditional checks then some work because you don’t know if the callback is happening or if the tag is indeed “Gravitationable” (Is that even spelt correctly?) etc. Verify if the callback is happening with a Debug.Log in the very least or better still, attached the debugger and put in a breakpoint. If you’ve done this, then please mention it.

Hello, thank you for the response, I managed to get the script working.