Jump to content
Sign in to follow this  
Razr_123

Assign Velocity to Cd

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!

Share this post


Link to post
Share on other sites

YES! How could I be so stupid,  I changed the @V.x for @v.x and it works.

Thank you so much! You cant imagine the headache I was going through :blink:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×