Jump to content

How to apply a SIM_Force


Recommended Posts

Hi guys,

 

i'm trying to apply a force on the points of a geometry.

So far i have a DOP network where i retrieve my geometry and its points, i give these points a mass and a velocity in my solver i'm coding.

Then i add a gravity node.

I read this article in the documentation : http://www.sidefx.com/docs/hdk13.0/_h_d_k__op_basics__sim_solver.html#HDK_OpBasics_SimSolver_ExternalForces

that explains how to retrieve the forces in the DOP network but then how can i apply them to my points?

Tell me if you need more informations.

Thanks.

 

Link to comment
Share on other sites

I tried using the getForce() function on each of my points. So now i retrieve the force as a vector that is equal to (0.0, -9.80665, 0.0) wich is exactly my gravity so it's great.

I guess i have to apply this force on my own on each of my points according to the timestep or the framestep.

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...