Simple vector returning ask

Hello. An noobie ask. I have an cube (for example) and this is moving to somewhere. How can i now the vector of his direction? (relative to world)

Vector3 lastPosition;

void Start()
{ 

 lastPosition = transform.position;

}

void Update()
{

  FindDirection();

}

void FindDirection()
{

  Vector3 _direction = (transform.position-lastPosition).normalized;

  if(lastPosition!=transform.position)
  {

	print(_direction);

  }

  lastPosition = transform.position;

}

This is for the case, when u don’t know which axis it’s moving on… transform is the moving object’s Transform. Try it out…