How to set a spatial hash grids origin?

I’m having a bit of a goof here, and can’t figure out how to set the center of this hash grid to be at an arbitrary location

the way the grid is mapped out is with the following blueprints

I can’t imagine I just change that 1, 1, 1 vector to be the center value using math, right? Surely that will mess up the location to coordinates calculations, no?

The white balls are the points that are mapped. The yellow sphere is the object’s location. And while it is technically the origin since all coordinate values are positive, I need it to be the center.

In this case, the yellow sphere will be in the center of the cube grid:

1 Like

so I guess opposite corner would be cell sizes x y z. So I guess

newOrigin = (actor location - opposite corner) / 2

set actor location -= newOrigin?

It’s not exactly what I want, but it’s a decent solution. I think it will have to work.

actually, the math is wrong. The formula you were trying to use is to get the midpoint between two points, so you were supposed to add, not subtract their vectors