#4x3x4 grid building system

1 messages · Page 1 of 1 (latest)

verbal current
#

if you want a non-cubic grid system, id recommend changing GRID_SIZE from a number to a vector3

#

youre able to use // and * on two vector3's which applies the operator to each corresponding component of each vector
with that in mind you may be able to change your SnapToGrid and IsWithinGrid functions to be the grid size you want

#

for instance, vecA // vecB == Vector3.new(vecA.X // vecB.X, vecA.Y // vecB.Y, vecA.Z // vecB.Z)

verbal current
#

do they have to be identical?

wild umbra
#

One message removed from a suspended account.

verbal current
#

what does "within the grid" mean in this context

#

also what i meant by the operators you can use on vectors is you can replace the return in SnapToGrid with return pos // GRID_SIZE * GRID_SIZE

wild umbra
verbal current
#

and its correct on the other axes?

wild umbra
#

One message removed from a suspended account.

#

One message removed from a suspended account.