1、The function of sin and cos are are inside out.
2、The LBoxCollider’s size is strange.
public void GetUniFormCell(FVector2 Tmin, FVector2 Tmax, LList<Cell> TArray )
{
{
TArray.Clear();
int nMinx = LPhysicsUtil.IFloor(Tmin.x / m_cellSize) - 1;
int nMiny = LPhysicsUtil.IFloor(Tmin.y / m_cellSize) - 1;
int nMaxx = LPhysicsUtil.ICeil(Tmax.x / m_cellSize) + 1;
int nMaxy = LPhysicsUtil.ICeil(Tmax.y / m_cellSize) + 1;
}
...
}