I’ll try to keep this post as simple as I can. You see, I’m currently working on a tree generator and am rotating the branches at different angles. The problem with this is that then the end of the branch doesn’t meet up with the top of the trunk.
I decided I would use Align Position to align the ends of the parts together, however, it’s just not aligning at all.
You can see in this picture there is quite a distance between the points (The left point is anchored and the right point is unanchored, and attachment 0 is the right point)
Any ideas as to what would cause this problem? Thanks!
Have you verified that the generation script is accurately generating your branches? If so, perhaps the properties of your object could be the culprit behind this unintentional behavior.
(Sorry for the late response, I’ve been gone most of the day)
As far as I know, my branches generate just fine, it’s just the positioning that needs work. I am welding the parts but that’s after aligning the position.
I might try to find another solution outside of AlignPosition, like doing math for the rotation of branches and adjusting position from there, which might be difficult
Instead of using alignPosition to connect the ends of the tree, I’ve decided to rewrite the way the branches form;
Now the branches will form with a size of (1,1,1) and orient themselves first. Then I change the size of the branch to what I originally wanted. After that, I can simply make the branch move up its relative Y-Axis by (Branch.Size.Y / 2)
This is compared to creating the full size branch, then orienting and trying to reposition correctly.