as the title says, this is happening when adding 50 to a negative number, its variable but around -1000 to -100. here are some code snippets, sorry i don’t know how to format them correctly as this is my first time posting!
FVector startPoint;
FVector endPointX;
FVector endPointY;
float cellSize;
FVector Center = FVector(startPoint.X + (cellSize / 2), startPoint.Y + (cellSize / 2), startPoint.Z + (cellSize / 2));
GridCanContain contains;
};```
```ANavGraph::GridSquare ANavGraph::CreateSquare(FVector start, FVector endX, FVector endY, float cellSize)
{
GridSquare square;
square.startPoint = start;
square.endPointX = endX;
square.endPointY = endY;
square.cellSize = cellSize;
square.contains = SquareContains(square.Center, cellSize);
return square;
}```
```FVector gridStart = GetActorLocation();
*GetActorLocation().ToString(), baseX, baseY);
FVector start = FVector(gridStart.X + baseX, gridStart.Y + baseY, gridStart.Z + baseZ);
FVector endX = FVector(start.X + tileSize, start.Y, start.Z);
FVector endY = FVector(start.X, start.Y + tileSize, start.Z);
Grid[height][column][row] = CreateSquare(start, endX, endY, tileSize);
baseX += tileSize;```