Jump to content

Assign Velocity to Cd


Razr_123

Recommended Posts

Hello everyone,

so I was trying to assign the different velocity channels to each Cd component, with a Point Wrangle like so:


float velxCD = fit(@V.x, -0.5, 0.5, 0, 1);
float velyCD = fit(@V.y, -0.5, 0.5, 0, 1);
float velzCD = fit(@V.z, -0.5, 0.5, 0, 1);

@Cd = set(velxCD, velyCD, velzCD);

 

I have previously also created a Color node to cast the Cd attribute, but the effects of this wrangle do not appear or I get an error (I am still learning). It could also be the case (most likely) that there is something fundamental that I am missing. :blush:

I hope any of you could guide me a bit on how to approach this issue.

Thank you!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...