Jump to content

Something like SpeedLimit POP but in DOP???


CeeGee

Recommended Posts

This question is maybe stupid, but is there something similar like SpeedLimitPOP but for DOP simulation???

I have fracture wall and what to make explosion, but some chunks flay very far and fast, i what to slow them down.

Thanks

Link to comment
Share on other sites

You can use a Drag DOP on your DOP object and check on Ignore Mass and then add drag. You can make the object look like it is falling in water by adding noise.

If you want to have a hard limit on the velocity itself, you can use a Modify Data DOP or a Motion DOP. Both can affect velocity. Just set the velocity to always and put in $velx $vely and $velz in to the three velocity fields to get no effect whatsoever. If you want to add some hard drag to the velocity, you can multply the three by 0.5: $velx*0.5 $vely*0.5 and $velz*0.5.

To add a simple condition where you don't want the object to fall faster than say 2 units per second in Y,

if($vely > -2, $vely, -2)

Link to comment
Share on other sites

  • 3 years later...

Nope - that would prevent pieces from falling slower than -2. You want max(-2, $vely).

Or to correctly limit speed in all directions: x = normalize(vector3($velx, $vely, $velz))[0] * min(2, length($velx, $vely, $velz)), and similar for y and z.

Boom! Nailed you on a four year-old thread, greg! ;-P Kidding - I actually just had to do this today, and this thread came up in search.

Is there a way of making dops calculate the normalized vel and/or speed (length) by itself? Seems stupid to have to type in all that stuff, build a vec3 from components, etc.

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