-
Notifications
You must be signed in to change notification settings - Fork 2k
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
permanent movement? #862
Comments
I don't think it's something you're doing wrong. I ran into this problem while working on the "Physics" (Hype) template... https://photics.com/free-template-tuesday-23-tumult-hype-physics/ I thought it was something Hype might have done. But now that I'm seeing you're having the same problem, maybe it's a Matter.js thing.
You could manage the movement manually. Turn the Physics bodies into sensors. Then, when a body collides with an object, just change their velocity. But what is brownian motion? https://en.wikipedia.org/wiki/Brownian_motion ...ah, that's going to be a bit of math. 😄 Maybe this should be reported as an issue? 🤷🏻♂️ |
I moved back to box2d instead. that's the matter with matter.js, its just
not precisive and glitchy.
…On Sun, Apr 26, 2020 at 3:30 PM michael-garofalo ***@***.***> wrote:
what I am doing wrong
I don't think it's something you're doing wrong. I ran into this problem
while working on the "Physics" (Hype) template...
https://photics.com/free-template-tuesday-23-tumult-hype-physics/
I thought it was something Hype might have done. But now that I'm seeing
you're having the same problem, maybe it's a Matter.js thing.
there is a way to hack around it?
You could manage the movement manually. Turn the Physics bodies into
sensors. Then, when a body collides with an object, just change their
velocity. But what is brownian motion?
https://en.wikipedia.org/wiki/Brownian_motion
...ah, that's going to be a bit of math. 😄
Maybe this should be reported as an issue? 🤷🏻♂️
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#862 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC7JJ4MSRPYFDHIS2ITV23ROQSORANCNFSM4MQ44TBQ>
.
|
You should check the
|
This is a known issue, please refer to #256. I see this come up a lot, it's noted and I'll consider it more of a priority for sure. Thanks for raising though and to those who got back here, but I'll close this one as a duplicate. |
liabru/matter-js#862 Seems like there's problems with energy conservation for perfect bounces. What we'll have to do is manage the bounces ourselves. Shouldn;t be too hard since we're really just mirroring the velocity vector
basically I want to achieve brownian motion, ie, particles bouncing endlessly in 0 gavity.
even when I set
frictionAir: 0,
friction: 0,
frictionStatic: 0,
systems seems to lose momentum and slow down?
what I am doing wrong, an/or there is a way to hack around it?
The text was updated successfully, but these errors were encountered: