this is my code and my Debug sphere don’t even appear??Itried to make a UE_LOG () to see if my tickfuntion work but it didn’t? My blueprint doesn’t work either? Did i did something wrong that bug my program??
AItem::AItem()
{
PrimaryActorTick.bCanEverTick = true;
}
void AItem::BeginPlay()
{
}
void AItem::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
//movement rate in units of cm/s
float movement_rate = 50.f;
UE_LOG(LogTemp, Warning, TEXT("Hello!!"));
//movement rate* deltatime (cm/s) * (s/frame) = cm/frame
AddActorWorldOffset(FVector(movement_rate * DeltaTime, 0.f, 0.f));
DRAW_SPHERE_SF(GetActorLocation());