Jump to content
Sign in to follow this  
jackassol

Stick on collision - Ragdall

Recommended Posts

Does anyone have an idea, how stick ragdolls on a collider based on collision?

Best Jack.

Share this post


Link to post
Share on other sites

You can create a constraint on the fly.

i did some experiments recently, see the file attached (the constraints are even animated, as I wanted to see if the ragdoll could climb more or less realistically a wall... answer is no, but it can be useful to learn how to manipulate constraints on ragdolls :-)

ragdollClimbing_v2.hip

Edited by StepbyStepVFX

Share this post


Link to post
Share on other sites

Hej, yes bought this course. Really good.

thanks for the file. It will help a lot.

 

But it looks more complicated than i thought.

How do I get this working on an animated collider/ rdb?

 

Best

Share this post


Link to post
Share on other sites

Well, this would require a bit of VEX, but I guess the main elements to achieve would be :

- I would work with a polygonal version of your collider (I don’t know what it is you are using, but you can always « hack » your DOP object and add pieces of data inside : check my other hip file, you will see that I need polygonal version of my terrain https://forums.odforce.net/applications/core/interface/file/attachment.php?id=49690

- you can use the Impact data (basically points), to find the prim and uv where the impact occured on your collider

- use these to always reference the point on this moving geometry where impact occured, and use this point to modifiy the constraint anchor in the sop solver of the constraint network

Of course, you will need to be familiar with Wrangle and SOP Solver and how to call different pieces of data in DOP... (all the bindings etc.)

Check the hip files I shared, because the main ingredients are there, you just need to spend some time figuring out, step by step, how to reference a point in DOP context, and use this position to modify a constraint network.

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
Sign in to follow this  

×