Jump to content
hicz

How could I apply forces on certain points of an object

Recommended Posts

hi,

I want to apply force on certain points of an object and using point attributes to control the force. I have tried vop force but it only worked at the center of object, and I can not change sampling mode of vop force.

Is it possible to apply forces per point or per primitive in RBD simulation?

thanks

Share this post


Link to post
Share on other sites
On 2018/1/3 at 12:15 AM, beliveau.maxime said:

Of course it is!

Groups you create in SOPs get pulled in in DOPs. Here's a small example file to get you started :)

 

 

example_RBD_forces.hipnc

Thanks for you example. But what I want is not apply force on packed individual objects. I want to apply different forces on a single object, and the forces are dependent on point attributes on the object, for example, forces scaled by Cd attribute.

Share this post


Link to post
Share on other sites

You can always use an attribute in a vex expression. For instance, in a pop force node, click one UseVEXpressions.

Then you can create a float based on your Cd and drive the amplitude of the noise.

float strength = length(v@Cd);

amp *= strength;

Does this answer your question?

 

 

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

×