object aligned to curve

   3134   2   1
User Avatar
Member
19 posts
Joined: Oct. 2012
Offline
Hi
I have here a curve created between tow points

every point get its position according to an object position
ok no i wan to copy a box along this curve but always keep it look in direction vector from the first point to the end point
i used poly frame and the point method even i tried to use point vop
but always there is something missing
So can you guide me on this
I did attached the file

Attachments:
_315x420_b95da43119c8b1e1808d6d4562caa3895332cd9beefc6acf3ed3ba526077f284.jpg (142.1 KB)
Directed.hip (310.3 KB)

User Avatar
Member
670 posts
Joined: Sept. 2013
Online
Subtract the positions of the first and the last points and apply the normalized result to all point normals. Define the up vectors to point upwards and append a copy-to-points node.

vector pt0 = point(0, "P", 0);
vector ptn = point(0, "P", npoints(0) - 1);
@N = normalize(pt0 - ptn);
@up = {0, 1, 0};

Attachments:
normals_up.hipnc (62.7 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
85 posts
Joined: May 2011
Offline
https://vimeo.com/189072983 [vimeo.com]
— dedeks 3000 —
  • Quick Links