Download

square motion

Hello everybody. I just started studying the engine tell me how you can implement the movement of an actor in a certain coordinate system, eg the cube spawn x = 1 y = 1 z = 1, it can only be moved to x + 1; y + 1; z + 1 or x + 2; y + 2; z + 2 but you can’t move x + 2.25; y + 2.57; z + 2.36 I mean square motion

sounds like you want to quantize the movement. you could use integer variables or use round, floor or ceiling mat. there is also a divide and remainder node that could be useful.