I am trying to have a scatter cloud shoot off to create collisions on another surface, and build stuff between them later. Ray node seems to be wanting a direction, but I need that to be dynamic.
How can I get vector information based on point A to point B and plug that into a ray direction?
Thank you so much!
Vector from Two Objects
3184 2 0- Seth Olson
- Member
- 3 posts
- Joined: 5月 2013
- Offline
- zdimaria
- Member
- 390 posts
- Joined: 1月 2012
- Offline
if you want to get a vector that points from point a to point b, you just need to subtract point b from point a. you can further normalize this if you want it to point in the direction but want it to have the length of 1.
the ray direction can take any point attribute, by default i believe it uses the normals. you could store the vector as a normal and it should ray along those.
the ray direction can take any point attribute, by default i believe it uses the normals. you could store the vector as a normal and it should ray along those.
.
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- Offline
A file for you
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=131762#131762 [sidefx.com]
Rob
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=131762#131762 [sidefx.com]
Rob
Gone fishing
-
- Quick Links