Hi Guys,
A good while back I asked for a function/help making a function that could reconstruct the positions of placed objects and then spawn objects in the same relational position at a new location.
Eg
-----------------------------
| o
|
| o x o
|
| o
|-----------------------------
Eg: the o's are objects or waypoints arranged in a pattern around x (the center point)
I would then like to be able to reference that center point, and duplicate the pattern of objects around it at another location.
This would be useful for me placing designs in toolset in one area - eg: creating complex glyph designs by hand, and then having them spawned elsewhere by script.
There was definitely a post where someone like ShAdoOw had provided the entire function that did what I needed.
However the search functionality on this forum is a little lacking.
It might have been over a year ago.
Anyone remember this post - position duplication via script
Débuté par
Baaleos
, oct. 18 2013 04:11
#1
Posté 18 octobre 2013 - 04:11
#2
Posté 18 octobre 2013 - 06:04
If you have the positions for all the objects, all you would have to do is find the average of the vectors to get the center point. If you know the center point you would just need to subtract its position from the position of each object to get their position relative to the center.
#3
Posté 19 octobre 2013 - 02:36
#4
Posté 19 octobre 2013 - 11:30
Thanks Lightfoot8
I had been trying to remember its title for the search tool- I prob shoulda named it better. Lol
I had been trying to remember its title for the search tool- I prob shoulda named it better. Lol
#5
Posté 19 octobre 2013 - 10:22
Yea, I had to google the site for "relative position" to find it and that was only because I half remembered what I named the functions.
#6
Posté 20 octobre 2013 - 12:31
Lightfoot8 have you considered putting an erf'ed version onto either vault with a short explanation of what it does?
TR
TR





Retour en haut






