Jump to content

clamping vel in pyro sim


MadMax50

Recommended Posts

Hello,

Is there a way to make a pyro sim travel at a constant speed. I tried to clamp the vel but I dont think im doing it correctly.

In a gas field wrangle I am writing this:


v@vel.y=clamp(@vel.y, -.5, .5);
v@vel.x=clamp(@vel.x, -.5, .5);
v@vel.z=clamp(@vel.z, -.5, .5);

 

I think its working but I was wondering if there was a better way to achieve this

I will attach my hip file

Thank you

clamp_vel_pyro.hip

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