Closed miabrahams closed 2 years ago
Hello @miabrahams Thanks for the PR! Can I ask you for a big favor? Can you do the PR but instead of modifying the original spring node, create a new one? maybe we can call it "springGravityNode.cpp" Later I will do that optional in the components as an option. The main reason is that @hulud75 just has updated the Rumba contra part mGear solvers with the spring node, if we change it now we will break compatibility 😅 https://github.com/MercenariesEngineering/mgear_solvers_rumba It is not possible for you to do it. I will do it by hand from your PR 😄 About the Node ID: don't worry just add one random ID and I will update it later. Thanks!!!
Hi Miguel, that's no problem. I also added a custom gravity direction and ground plane orientation because why not.
Thanks a lot! @miabrahams 😄
Hello @miabrahams Thanks for the PR! Can I ask you for a big favor? Can you do the PR but instead of modifying the original spring node, create a new one? maybe we can call it "springGravityNode.cpp" Later I will do that optional in the components as an option. The main reason is that @hulud75 just has updated the Rumba contra part mGear solvers with the spring node, if we change it now we will break compatibility sweat_smile https://github.com/MercenariesEngineering/mgear_solvers_rumba It is not possible for you to do it. I will do it by hand from your PR smile About the Node ID: don't worry just add one random ID and I will update it later. Thanks!!!
Hi ! Please do not worry about the Rumba port in your design choice. For sure, it's good for the mgear users if you do not break the compatibility with previous Maya versions, but regarding the Rumba port, we will simply follow your modifications, no worries.
@miabrahams finally doing the merge! Thanks again for the PR!
Issue #58
Gravity sets a target bias in the -y direction.
Add support for a ground plane collider and a list of spherical colliders. The ground plane prevents the spring from crossing below y=0.
Spherical colliders repel the springs from a point in space.
To create a geometrical UI for the collider, create a NURBS sphere, connect its world space position to the input position, and its world space scale to the collider radius.
Collision can be given a softness value to create soft or hard collisions. Zero softness prevents springs from crossing the barriers entirely.