Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constraints - Sublucid Geometry #19

Open
utterances-bot opened this issue Feb 20, 2021 · 7 comments
Open

Constraints - Sublucid Geometry #19

utterances-bot opened this issue Feb 20, 2021 · 7 comments

Comments

@utterances-bot
Copy link

Constraints - Sublucid Geometry

The essence of constraint is projection.

https://zalo.github.io/blog/constraints/

Copy link
Owner

zalo commented Feb 21, 2021

Please leave your thoughts, comments, and ideas here!

Copy link
Owner

zalo commented Feb 21, 2021

Earlier Comments (from before switching to utterances):

Prashal Goyal:

This is amazing! Didn’t understood what the purpose was but it was fun!

IPEG

The first example code doesn't exactly represent what the demo shows, which is
confusing. The constraint code produces a point that is always on the edge of
the circle, while the demo only moves the black point to the edge of the
circle if it's outside of it =)

Kiran Kumar Y

Awesome 👍 👍 👍

There additional comments in the HackerNews Thread.

Copy link

Love these little play visualizations! Would love to be able to edit and play around with some parameters in the examples.

Copy link

this is great <3. thanks for putting these together for the less mathematical

Copy link

mopifish commented Aug 6, 2024

This is great! I would've liked more in depth explanations for some of the formulas, but I was able to piece them out, and the demonstrations were really helpful.

For the first formula, as IPEG mentioned, it only produces a point stuck on the egde of the circle. This is because the distance is always the radius of the circle, and doesn't account for when the point is within the circle.

To fix this simply add a line like
distance = min(distance, point.distance_to(anchor))
If the distance between the point and the anchor is less than the radius, then this lets the point inside of the circle.

Copy link

bjrnt commented Aug 12, 2024

Great visualizations and explanations! It'd be cool to see angle constraints be added to FABRIK or the Distance Constraint Chain to simulate something more a limb.

Copy link

awsome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants