Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Negative tension values can cause breaking behavior #21

Open
trevor-e opened this issue Mar 7, 2014 · 3 comments
Open

Negative tension values can cause breaking behavior #21

trevor-e opened this issue Mar 7, 2014 · 3 comments

Comments

@trevor-e
Copy link

trevor-e commented Mar 7, 2014

I was playing around with the demo and it's a cool library. Feeling mischievous, I put some negative values in for tension to test the behavior. -1 and -10 seemed to work fine, but when I jumped up to -100 it quickly overloaded my browser's capabilities and crashed as the sample image outgrew its borders. Is it intended to accept negative values? Should there be some sort of cap or is it the developer's responsibility?

A quick Google search reveals that a negative tension may be breaking some laws of physics. Quoting an answer from a physics forum: "A negative tension, to my mind, would mean that the string should spontaneously blow itself apart."

@trevor-e
Copy link
Author

trevor-e commented Mar 7, 2014

Interesting behavior for inputting negative friction values too.

@willbailey
Copy link
Contributor

Thanks for hacking around with it. It's not really intended to take negative values currently. I've been meaning to add support for spring constraints that keep an object away a fixed distance from center point, but haven't gotten to it yet.

@ghost
Copy link

ghost commented Aug 4, 2015

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

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

No branches or pull requests

2 participants