Download

Character Movement | Round to the Nearest

Hey all!

I am working on an in-game world building system where I can spawn walls, windows, floors etc… Right now I have it to where I can toggle snapping that spawned item to the nearest int wold location. That is working fine! However, I notice that if I select an item and then place it back down and if I move just a hair and select it again, it will snap to a new location. So what I am looking to accomplish is when I have my “Grid Snapping” enabled I want my characters movement to snap to that same int. I have tried a few things but cannot seem to get anything to work. Any advice would be greatly appreciated!

Thank you!
Matt