tyFlow Forum
PhysX simulation, lock position of single bone of an actor - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: General Discussion (https://forum.tyflow.com/forum-2.html)
+--- Thread: PhysX simulation, lock position of single bone of an actor (/thread-992.html)



PhysX simulation, lock position of single bone of an actor - ellukazorosa - 08-11-2019

Hi!
Recently I was practicing with making some ragdoll simulations with PhysX, here is a thread of what I made last time: http://forum.tyflow.com/thread-869-post-3143.html#pid3143

What I am about to next is have a character with long arms and legs simulated with PhysX, but I want that the character's pelvis is perfectly locked in space. As if it was glued against a wall, and all the other bones fly and collide around.

I've been trying for a few hours now and it's so frustrating to feel so absolutely clueless of where to look for a solution.

My best guess would be to make the first particle created with the Actor component with the "locked position X Y Z" activated in PhysX Shape component. But as far as I can see there is no way to split rig particles into different PhysX components, or is there?

Thank you very much for your time!


RE: PhysX simulation, lock position of single bone of an actor - tyFlow - 08-11-2019

You can use the tyActor property window to assign a simulation group to the bone objects of your choosing in the scene. The assigned properties from that window will transfer to the corresponding actor rig particles.

From there, you can use a Property Test to test for that group on the corresponding rig particles. and send the matching particle to another event, where you can use a PhysX Bind operator (with "world" checked) to pin it in space.


RE: PhysX simulation, lock position of single bone of an actor - ellukazorosa - 08-11-2019

(08-11-2019, 03:45 PM)tyFlow Wrote: You can use the tyActor property window to assign a simulation group to the bone objects of your choosing in the scene. The assigned properties from that window will transfer to the corresponding actor rig particles.

From there, you can use a Property Test to test for that group on the corresponding rig particles. and send the matching particle to another event, where you can use a PhysX Bind operator (with "world" checked) to pin it in space.

You, sir, have made my weekend! It worked! 

I didn't know you could assign simulation groups per bone. This opens up sooo many possibilities with characters!!!


[Image: N232Fbx.png]

Thank you so so much!!


RE: PhysX simulation, lock position of single bone of an actor - tyFlow - 08-11-2019

Great!