// Copyright 2026, Algoryx Simulation AB.

#include "Sensors/AGX_LidarOutputBase.h"

// AGX Dynamics for Unreal includes.
#include "Sensors/AGX_LidarSensorComponent.h"
#include "Sensors/LidarOutputBarrier.h"

bool FAGX_LidarOutputBase::AddTo(UAGX_LidarSensorComponent* Lidar)
{
	if (Lidar == nullptr)
		return false;

	return Lidar->AddOutput(*this);
}

bool FAGX_LidarOutputBase::operator==(const FAGX_LidarOutputBase& Other) const
{
	return HasNative() && Other.HasNative() && GetNative() == Other.GetNative();
}
