How to art direct Vellum and limit rotation ?

   3166   2   1
User Avatar
Member
8 posts
Joined: Sept. 2021
Offline
Hello,

I've made a simple trampoline like effect with Vellum. I'm dropping a pighead onto a Struts-Cloth and letting it bounce of it. Now im trying to get the pighead to bounce of a bit more from the struts but more importantly I'm trying to make the pig head not flip over when bouncing of. Is there a way to limit its angular velocity and how do I generally art direct vellum sims a bit better? I've attached a sample of the scene.

Video [gyazo.com]

Any help is very appreciated. Thank you.
Edited by aw_iv - Feb. 20, 2022 17:47:45

Attachments:
Vellum_Bounce_limit_Rotation.hip (728.8 KB)

User Avatar
Member
48 posts
Joined: Aug. 2017
Online
Hi, it relatively simple, what you need to understand first is that vellum don't see object as a whole, they are rather a bunch of point connected to each other via constraint, there isn't a 'angular velocity' per object per say.

what you want to do is basically limit the ability of the point to move in the X and Z direction, essentially constraining them to only move in the Y axis (up).
you can dive into your vellum solver and add a 'pop wrangle' and damp the velocity 'v' by multiplying it by a smaller value. connect the node to the force output.

@v.x *= 0.2;
@v.z *= 0.2;

this will effectively limit the rotation of the object.

ps: you might want to only damp the head by using group, or the effect will apply to the whole simulation.
Edited by SciTheSqrl - Feb. 21, 2022 05:51:40

Attachments:
Vellum_Bounce_limit_Rotation_damped.hiplc (732.0 KB)

User Avatar
Member
8 posts
Joined: Sept. 2021
Offline
Thank you, didn't know it was just that simple. Yeah I passed down a point group to only effect the pighead.
  • Quick Links