Move all points such that a specific one is at world center

   716   2   1
User Avatar
Member
39 posts
Joined: Oct. 2011
Offline
I've got a curve that I want to reposition (procedurally) so that point 0 is at the center of the world. I've been having a really hard time working out how to do this. Right now, I'm stuck on how to get the correct values for the offset, relative to point 0. I think I have the steps after that worked out. Any suggestions?
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
You should get the position of point 0 and subtract it from every point position.


v@P -= point(0, "P", 0);
Edited by Andr - March 29, 2023 14:19:23
User Avatar
Member
39 posts
Joined: Oct. 2011
Offline
@Andr Thank you! That did it
  • Quick Links